it.eng.spago.event.manager
Class PluginManager

java.lang.Object
  extended byit.eng.spago.event.manager.PluginManager
All Implemented Interfaces:
PluginManagerIFace

public class PluginManager
extends java.lang.Object
implements PluginManagerIFace


Constructor Summary
PluginManager()
           
 
Method Summary
 void createNewPlugin(java.lang.String key, java.lang.String description, java.lang.String type)
          This method provide to create a New plugin This method throws an exception if something goes wrong
 void createNewPluginType(java.lang.String key, java.lang.String description)
          This method provide to create a New plugin type This method throws an exception if something goes wrong
 SourceBean getAllPlugins()
          This method provide to return a SourceBean representing all plugins This method throws an exception if something goes wrong
 SourceBean getPluginsForType(java.lang.String typePlugin)
          This method provide to return a SourceBean representing plugins with type passed in input This method throws an exception if something goes wrong
 SourceBean getPluginType()
          This method provide to return all plugin type This method throws an exception if something goes wrong
 void removePlugin(java.lang.String key)
          This method provide to remove the plugin identified by key, all associations with events and all trigger associated to it This method throws an exception if something goes wrong
 void removePluginType(java.lang.String key)
          This method provide to remove the plugin type This method throws an exception if something goes wrong or if there are some plugins associated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager()
Method Detail

getAllPlugins

public SourceBean getAllPlugins()
                         throws java.lang.Exception
This method provide to return a SourceBean representing all plugins This method throws an exception if something goes wrong

Specified by:
getAllPlugins in interface PluginManagerIFace
Returns:
a SourceBean of all event
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

getPluginsForType

public SourceBean getPluginsForType(java.lang.String typePlugin)
                             throws java.lang.Exception
This method provide to return a SourceBean representing plugins with type passed in input This method throws an exception if something goes wrong

Specified by:
getPluginsForType in interface PluginManagerIFace
Returns:
SourceBean of plugins
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

getPluginType

public SourceBean getPluginType()
                         throws java.lang.Exception
This method provide to return all plugin type This method throws an exception if something goes wrong

Specified by:
getPluginType in interface PluginManagerIFace
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

createNewPlugin

public void createNewPlugin(java.lang.String key,
                            java.lang.String description,
                            java.lang.String type)
                     throws java.lang.Exception
This method provide to create a New plugin This method throws an exception if something goes wrong

Specified by:
createNewPlugin in interface PluginManagerIFace
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

removePlugin

public void removePlugin(java.lang.String key)
                  throws java.lang.Exception
This method provide to remove the plugin identified by key, all associations with events and all trigger associated to it This method throws an exception if something goes wrong

Specified by:
removePlugin in interface PluginManagerIFace
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

createNewPluginType

public void createNewPluginType(java.lang.String key,
                                java.lang.String description)
                         throws java.lang.Exception
This method provide to create a New plugin type This method throws an exception if something goes wrong

Specified by:
createNewPluginType in interface PluginManagerIFace
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception

removePluginType

public void removePluginType(java.lang.String key)
                      throws java.lang.Exception
This method provide to remove the plugin type This method throws an exception if something goes wrong or if there are some plugins associated

Specified by:
removePluginType in interface PluginManagerIFace
Throws:
<{Exception}> - - if some problems occurs during operation
java.lang.Exception