celeboss.plugin
Class PluginManager

java.lang.Object
  extended byceleboss.plugin.PluginManager

public final class PluginManager
extends java.lang.Object

This class managers the various robots that are deployed with any CelebOSS instance. This class will scan the PLUGIN_DIR directory to locate any plugin. Each plugin has a dedicated subdirectory in this place. Each found directory is assumed to contain a complete robot trader, it must contain a file called CONFIG_FILE which describes the details of the plugin. These details include a name, icon, class path and main class to execute. The main class must implement the PortfolioPlugin interface.

Version:
1.0
Author:
bevans
See Also:
PortfolioPlugin

Field Summary
static java.lang.String CONFIG_FILE
          The file that each robot directory must contain to describe the configuration
static java.lang.String PLUGIN_DIR
          Sub-directory used to hold robots traders
 
Method Summary
 java.util.Collection getActions(Portfolio portfolio)
          Get a list of actions that can be used to trigger the creation of a robot for a specific Portfolio.
static PluginManager getInstance()
          Get the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
The file that each robot directory must contain to describe the configuration

See Also:
Constant Field Values

PLUGIN_DIR

public static final java.lang.String PLUGIN_DIR
Sub-directory used to hold robots traders

See Also:
Constant Field Values
Method Detail

getInstance

public static PluginManager getInstance()
Get the singleton instance.

Returns:
Robot Manager loaded with known robots.

getActions

public java.util.Collection getActions(Portfolio portfolio)
Get a list of actions that can be used to trigger the creation of a robot for a specific Portfolio. The target Portfolio is specified and a list of complete actions is returned.

Parameters:
portfolio - Target portfolio
Returns:
Collection of Actions
See Also:
PortfolioPlugin