@Test public void testApplyPluginsForContainer() throws Exception { spoonPluginManager.pluginAdded( plugin1 ); spoonPluginManager.pluginAdded( plugin2 ); spoonPluginManager.applyPluginsForContainer( "trans-graph", xulDomContainer ); assertEquals( 2, applies.size() ); assertEquals( 1, (int) applies.get( spoonPluginInterface1 ) ); assertEquals( 1, (int) applies.get( spoonPluginInterface2 ) ); }
public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException { List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category ); if ( plugins != null ) { for ( SpoonPluginInterface sp : plugins ) { sp.applyToContainer( category, container ); } } }
SpoonPluginManager implements PluginTypeListener { public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException { List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category ); if ( plugins != null ) { for ( SpoonPluginInterface sp : plugins ) { sp.applyToContainer( category, container ); } } } }
SpoonPluginManager implements PluginTypeListener { public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException { List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category ); if ( plugins != null ) { for ( SpoonPluginInterface sp : plugins ) { sp.applyToContainer( category, container ); } } } private  SpoonPluginManager(); }
SpoonPluginManager implements PluginTypeListener { public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException { List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category ); if ( plugins != null ) { for ( SpoonPluginInterface sp : plugins ) { sp.applyToContainer( category, container ); } } } private  SpoonPluginManager(); @Override void pluginAdded( final Object serviceObject ); @Override void pluginRemoved( Object serviceObject ); @Override void pluginChanged( Object serviceObject ); static SpoonPluginManager getInstance(); void applyPluginsForContainer( final String category, final XulDomContainer container ); List<SpoonPluginInterface> getPlugins(); void notifyLifecycleListeners( SpoonLifecycleListener.SpoonLifeCycleEvent evt ); }
SpoonPluginManager implements PluginTypeListener { public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException { List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category ); if ( plugins != null ) { for ( SpoonPluginInterface sp : plugins ) { sp.applyToContainer( category, container ); } } } private  SpoonPluginManager(); @Override void pluginAdded( final Object serviceObject ); @Override void pluginRemoved( Object serviceObject ); @Override void pluginChanged( Object serviceObject ); static SpoonPluginManager getInstance(); void applyPluginsForContainer( final String category, final XulDomContainer container ); List<SpoonPluginInterface> getPlugins(); void notifyLifecycleListeners( SpoonLifecycleListener.SpoonLifeCycleEvent evt );  }