private void exportResources ( PluginClassLoaderDef def , ClassloaderBuilder builder , Collection < PluginClassLoaderDef > allPlugins ) { // export the resources to all other plugins builder . setExportMask ( def . getBasePluginKey ( ) , def . getExportMask ( ) ) ; for ( PluginClassLoaderDef other : allPlugins ) { if ( ! other . getBasePluginKey ( ) . equals ( def . getBasePluginKey ( ) ) ) { builder . addSibling ( def . getBasePluginKey ( ) , other . getBasePluginKey ( ) , new Mask ( ) ) ; } } }
A plugin can export some resources to other plugins