org.instrumentmiddleware.cima.plugin.manager
Interface IPluginManager

All Superinterfaces:
org.springframework.context.ApplicationEventPublisherAware
All Known Implementing Classes:
ListPluginManager

public interface IPluginManager
extends org.springframework.context.ApplicationEventPublisherAware

The ICIMAPluginManager is simply a container for plugins

Author:
andrew

Method Summary
 boolean addPlugin(ICIMAPlugin plugin)
           
 void autostartAllPlugins()
          Starts all plugins that have been added to the manager and who's startOnLoad() method return true.
 ICIMAPlugin getPlugin(java.lang.String id)
           
 java.util.List<java.lang.String> listPluginIds()
           
 boolean removePlugin(ICIMAPlugin plugin)
           
 void startPlugin(ICIMAPlugin plugin)
           
 void startPlugin(java.lang.String id)
           
 void stopPlugin(ICIMAPlugin plugin)
           
 void stopPlugin(java.lang.String id)
           
 
Methods inherited from interface org.springframework.context.ApplicationEventPublisherAware
setApplicationEventPublisher
 

Method Detail

addPlugin

boolean addPlugin(ICIMAPlugin plugin)

removePlugin

boolean removePlugin(ICIMAPlugin plugin)

getPlugin

ICIMAPlugin getPlugin(java.lang.String id)

listPluginIds

java.util.List<java.lang.String> listPluginIds()

startPlugin

void startPlugin(java.lang.String id)
                 throws PluginException,
                        ProcessException
Throws:
PluginException
ProcessException

stopPlugin

void stopPlugin(java.lang.String id)
                throws PluginException,
                       ProcessException
Throws:
PluginException
ProcessException

startPlugin

void startPlugin(ICIMAPlugin plugin)
                 throws PluginException
Throws:
PluginException

stopPlugin

void stopPlugin(ICIMAPlugin plugin)
                throws PluginException
Throws:
PluginException

autostartAllPlugins

void autostartAllPlugins()
                         throws PluginException
Starts all plugins that have been added to the manager and who's startOnLoad() method return true.

Throws:
PluginException - If any plugin fails to start.


Copyright © 2008. All Rights Reserved.