|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectplanetj.dataengine.action.AbstractAction
planetj.dataengine.action.ReflectAction
A ReflectAction uses java reflection to invoke a method on a given Object.
| Field Summary |
| Fields inherited from class planetj.dataengine.action.AbstractAction |
DEFAULT_TYPE |
| Constructor Summary | |
ReflectAction(java.lang.Class c,
java.lang.String methodName)
ReflectAction constructor. |
|
ReflectAction(java.lang.Class c,
java.lang.String methodName,
java.lang.Class[] parameterTypes)
ReflectMethodRowAction constructor. |
|
ReflectAction(java.lang.String methodName)
ReflectMethodRowAction constructor. |
|
ReflectAction(java.lang.String methodName,
java.lang.Class[] parameterTypes)
ReflectMethodRowAction constructor. |
|
| Method Summary | |
java.lang.Class |
getMethodClass()
Gets the Class containing the method to reflect. |
java.lang.String |
getMethodName()
Gets the name of the method this action should reflect on a given Row. |
java.lang.String |
getName()
Get the action's name. |
java.lang.Class[] |
getParameterTypes()
Gets the parameter types classes to use when reflecting on a Row's method.. |
java.lang.Object |
handleAction(java.lang.Object o,
ExecutingContext ec)
Refects this action's method on the given object. |
java.lang.Object |
handleAction(java.lang.Object o,
java.lang.Object[] args,
ExecutingContext ec)
Uses java reflection to invoke this action's method on the given Object. |
void |
setMethodClass(java.lang.Class c)
Sets the Class contianing the method to reflect. |
void |
setMethodName(java.lang.String methodName)
Sets the name of the method this action should reflect on a given Row. |
void |
setParameterTypes(java.lang.Class[] parameterTypes)
Sets the parameter types the method this action should use when reflecting on a given Row. |
| Methods inherited from class planetj.dataengine.action.AbstractAction |
clone, cloneAction, getDefaultDescriptor, getDefaultLocation, getDescriptor, getDetailsLocations, getDetailsModes, getLocation, getLocations, getType, handleAction, handleAction, setDescriptor |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReflectAction(java.lang.Class c,
java.lang.String methodName)
c - class containing methodmethodName - name of method to reflect
public ReflectAction(java.lang.Class c,
java.lang.String methodName,
java.lang.Class[] parameterTypes)
c - class containing methodmethodName - name of method to reflect on the RowparameterTypes - array of class types for method parameterspublic ReflectAction(java.lang.String methodName)
methodName - name of method to reflect on the Row
public ReflectAction(java.lang.String methodName,
java.lang.Class[] parameterTypes)
methodName - name of method to reflect on the Row| Method Detail |
public java.lang.String getName()
getName in class AbstractActionpublic java.lang.Class getMethodClass()
public java.lang.String getMethodName()
public java.lang.Class[] getParameterTypes()
public final java.lang.Object handleAction(java.lang.Object o,
ExecutingContext ec)
throws CMException
handleAction in class AbstractActiono - Object to perform the action on
CMException
public java.lang.Object handleAction(java.lang.Object o,
java.lang.Object[] args,
ExecutingContext ec)
throws CMException
o - Object to reflect method on
CMExceptionpublic void setMethodClass(java.lang.Class c)
public void setMethodName(java.lang.String methodName)
methodName - name of method to reflect on Row.public void setParameterTypes(java.lang.Class[] parameterTypes)
parameterTypes - array of classes for method.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||