com.evelopers.unimod.core.stateworks
Class ImplementationHandler

java.lang.Object
  extended bycom.evelopers.unimod.core.stateworks.ImplementationHandler
All Implemented Interfaces:
java.io.Serializable

class ImplementationHandler
extends java.lang.Object
implements java.io.Serializable

Provide facilities to handle implementation cass name in design-time and to instanciate implementation class in run-time


Field Summary
protected  java.lang.Class handledType
           
protected  java.lang.String implName
          Implementation class name.
protected  java.lang.Object implObject
          Implementation object.
 
Constructor Summary
protected ImplementationHandler(java.lang.String implementationClassName, java.lang.Class handledType)
          Creates object with given name and implementation class.
 
Method Summary
 java.lang.String getImplName()
          Returns implementation class name
 java.lang.Object getObject()
          Instantiates target implementation object.
 void setImplName(java.lang.String implName)
          Sets new implementation class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

implName

protected java.lang.String implName
Implementation class name.


handledType

protected java.lang.Class handledType

implObject

protected transient java.lang.Object implObject
Implementation object. Exists only during run-time. Inited by getObject() using lazy initialization.

Constructor Detail

ImplementationHandler

protected ImplementationHandler(java.lang.String implementationClassName,
                                java.lang.Class handledType)
Creates object with given name and implementation class.

Parameters:
implementationClassName -
handledType - Class of handled object
Method Detail

getImplName

public java.lang.String getImplName()
Returns implementation class name

Returns:
implementation class name

setImplName

public void setImplName(java.lang.String implName)
Sets new implementation class name

Parameters:
implName - new implementation class name

getObject

public java.lang.Object getObject()
                           throws EventProcessorException
Instantiates target implementation object.

Returns:
Controllable Object
Throws:
EventProcessorException