com.evelopers.unimod.runtime.interpretation
Class InstantiateHelper

java.lang.Object
  extended bycom.evelopers.unimod.runtime.interpretation.InstantiateHelper

public class InstantiateHelper
extends java.lang.Object

Helps to instantiate ControlledObjects, EventProviders and StateMachineConfigManagers


Constructor Summary
InstantiateHelper()
           
 
Method Summary
static ControlledObject getControlledObject(java.lang.String implementationClassName)
          Instantiates target ControlledObject implementation.
static EventProvider getEventProvider(java.lang.String implementationClassName)
          Instantiates target EventProvider implementation.
static java.lang.Object getObject(java.lang.String implementationClassName, java.lang.Class generalClass)
          Instantiates target implementation object.
static StateMachineConfigManager getStateMachineConfigManager(java.lang.String implementationClassName)
          Instantiates target StateMachineConfigManager implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstantiateHelper

public InstantiateHelper()
Method Detail

getControlledObject

public static ControlledObject getControlledObject(java.lang.String implementationClassName)
                                            throws EventProcessorException
Instantiates target ControlledObject implementation.

Returns:
instantiated object
Throws:
EventProcessorException - if class couldn't be casted to ControlledObject or object couldn't be created.

getEventProvider

public static EventProvider getEventProvider(java.lang.String implementationClassName)
                                      throws EventProcessorException
Instantiates target EventProvider implementation.

Returns:
instantiated object
Throws:
EventProcessorException - if class couldn't be casted to EventProvider or object couldn't be created.

getStateMachineConfigManager

public static StateMachineConfigManager getStateMachineConfigManager(java.lang.String implementationClassName)
                                                              throws EventProcessorException
Instantiates target StateMachineConfigManager implementation.

Returns:
instantiated object
Throws:
EventProcessorException - if class couldn't be casted to StateMachineConfigManager or object couldn't be created.

getObject

public static java.lang.Object getObject(java.lang.String implementationClassName,
                                         java.lang.Class generalClass)
                                  throws EventProcessorException
Instantiates target implementation object.

Returns:
instantiated object
Throws:
EventProcessorException - if class couldn't be casted to generalClass or object couldn't be created.