|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.appArch.admin.CallbackHolder
Holder for callback objects in the Command Callback Service
Nested Class Summary | |
static class |
CallbackHolder.Test
Unit test of the ProcessDescriptor. |
Constructor Summary | |
CallbackHolder(java.lang.Object callbackObject,
java.lang.String externalCallName,
java.lang.String methodName,
java.lang.String methodDescription,
java.lang.String[] arguments,
java.lang.String[] argumentDescriptions)
Constructor that initializes the CallbackHolder. |
Method Summary | |
Command |
executeCommand(Command command)
Execute the method of the callback object contained in the callbackHolder |
java.lang.String[] |
getArgumentDescriptions()
Return the argument descriptions as a string array object |
java.lang.String[] |
getArguments()
Gets the Arguments attribute of the CallbackHolder object |
java.lang.Object |
getCallbackObject()
|
java.lang.String |
getExternalCallName()
|
java.lang.reflect.Method |
getMethod()
|
java.lang.String |
getMethodDescription()
|
java.lang.String |
getMethodName()
|
protected DataItem[] |
getResultValues(java.lang.reflect.Method meth,
java.lang.Object result)
Extract the elements of a result array into the individual elements. |
void |
setArgumentDescriptions(java.lang.String[] someDescriptions)
Set the argument descriptions |
void |
setArguments(java.lang.String[] someArguments)
Set the unvalidated arguments |
void |
setCallbackObject(java.lang.Object aCallbackObject)
Set the callback object |
void |
setExternalCallName(java.lang.String anExternalCallName)
Set the name of the external call. |
void |
setMethod(java.lang.reflect.Method aMethod)
Sets the Method attribute of the CallbackHolder object |
void |
setMethodDescription(java.lang.String aMethodDescription)
Set the method description string. |
void |
setMethodName(java.lang.String aMethodName)
Set the mthod name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CallbackHolder(java.lang.Object callbackObject, java.lang.String externalCallName, java.lang.String methodName, java.lang.String methodDescription, java.lang.String[] arguments, java.lang.String[] argumentDescriptions)
callbackObject
- The target of the reflected invocation.externalCallName
- String The unique name identifying this command.methodName
- String The name of the method to invoke.methodDescription
- String A nice description of the method.arguments
- String [] Fully qualified class names.argumentDescriptions
- Method Detail |
public void setArgumentDescriptions(java.lang.String[] someDescriptions)
someDescriptions
- The new ArgumentDescriptions valuepublic void setArguments(java.lang.String[] someArguments)
someArguments
- The new Arguments valuepublic void setCallbackObject(java.lang.Object aCallbackObject)
aCallbackObject
- The new CallbackObject valuepublic void setExternalCallName(java.lang.String anExternalCallName)
anExternalCallName
- The new ExternalCallName valuepublic void setMethod(java.lang.reflect.Method aMethod)
aMethod
- The new Method valuepublic void setMethodDescription(java.lang.String aMethodDescription)
aMethodDescription
- The new MethodDescription valuepublic void setMethodName(java.lang.String aMethodName)
aMethodName
- The new MethodName valueprotected DataItem[] getResultValues(java.lang.reflect.Method meth, java.lang.Object result)
meth
- The method we invoked.result
- The result of the invocation
public java.lang.String[] getArgumentDescriptions()
public java.lang.String[] getArguments()
public java.lang.Object getCallbackObject()
public java.lang.String getExternalCallName()
public java.lang.reflect.Method getMethod()
#getCallbackMethod(CallbackHolder)
public java.lang.String getMethodDescription()
public java.lang.String getMethodName()
public Command executeCommand(Command command)
command
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |