public final IPluginInterface getPlugin ( final String name ) throws UnknownPluginException { PluginDefinition pluginDef = pluginsDefinitionsMap . get ( name ) ; if ( pluginDef == null ) { throw new UnknownPluginException ( name ) ; } try { IPluginInterface pluginInterface = pluginDef . getPluginInterface ( ) ; if ( pluginInterface == null ) { pluginInterface = pluginDef . getPluginClass ( ) . newInstance ( ) ; } return new PluginProxy ( pluginInterface , pluginDef ) ; } catch ( Exception e ) { // FIXME : handle this exception e . printStackTrace ( ) ; } return null ; }
Returns the implementation of the plugin identified by the given name .