org.marketcetera.strategy
Class StrategyModuleFactory

java.lang.Object
  extended by org.marketcetera.module.ModuleFactory
      extended by org.marketcetera.strategy.StrategyModuleFactory

public final class StrategyModuleFactory
extends ModuleFactory

Strategy Agent module factory implementation for the strategy module.

The factory accepts the following parameters when creating new instances of the strategy

  1. String: strategy instance name
  2. String: strategy class name
  3. Object: strategy language, one of Language
  4. File: strategy script file
  5. Properties: strategy properties
  6. Boolean: if strategy should route orders to the server
  7. ModuleURN: URN of the module to which all the output should be sent. Typically the sink module.

The factory has the following characteristics.

Provider URN:metc:strategy:system
Cardinality:Multi-Instance
Auto-Instantiated:No
Auto-Started:No
Instantiation Arguments:String, String, Object, File, Properties, Boolean, ModuleURN: See above for details.
Module Type:StrategyModule

Since:
1.0.0
Version:
$Id: StrategyModuleFactory.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Field Summary
static ModuleURN PROVIDER_URN
          use this provider URN to start a strategy
 
Constructor Summary
StrategyModuleFactory()
          Create a new MarketceteraFeedModuleFactory instance.
 
Method Summary
 org.marketcetera.strategy.StrategyModule create(Object... inParameters)
           
 
Methods inherited from class org.marketcetera.module.ModuleFactory
getParameterTypes, getProviderDescription, getProviderURN, isAutoInstantiate, isMultipleInstances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_URN

public static final ModuleURN PROVIDER_URN
use this provider URN to start a strategy

Constructor Detail

StrategyModuleFactory

public StrategyModuleFactory()
Create a new MarketceteraFeedModuleFactory instance.

Method Detail

create

public org.marketcetera.strategy.StrategyModule create(Object... inParameters)
                                                throws ModuleCreationException
Specified by:
create in class ModuleFactory
Throws:
ModuleCreationException


Copyright © 2012. All Rights Reserved.