Package org.chenile.owiz.impl
Class DelegatorCommand<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
org.chenile.owiz.impl.DelegatorCommand<InputType>
- Type Parameters:
InputType
-
- All Implemented Interfaces:
BypassableCommand<InputType>
,Command<InputType>
,OrchestrationAware<InputType>
This Command delegates control to a method of an underlying object whose reference is
passed to this command. This can be useful for trivial delegations.
-
Field Summary
Modifier and TypeFieldDescriptionprivate BeanFactoryAdapter
private static final String
private String
private static final String
private Object
Fields inherited from class org.chenile.owiz.impl.CommandBase
commandDescriptor, orchConfigurator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Method
we don't know what is the signature since the arg type is unknown.void
setBeanFactoryAdapter
(BeanFactoryAdapter beanFactoryAdapter) void
setMethodName
(String methodName) void
setUnderlyingObject
(Object underlyingObject) Methods inherited from class org.chenile.owiz.impl.CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
beanFactoryAdapter
-
methodName
-
underlyingObject
-
UNDERLYING_OBJECT
- See Also:
-
METHOD_NAME
- See Also:
-
-
Constructor Details
-
DelegatorCommand
public DelegatorCommand()
-
-
Method Details
-
getBeanFactoryAdapter
-
setBeanFactoryAdapter
-
getMethodName
-
setMethodName
-
getUnderlyingObject
-
setUnderlyingObject
-
doExecute
- Specified by:
doExecute
in classCommandBase<InputType>
- Throws:
Exception
-
getMethod
we don't know what is the signature since the arg type is unknown. So find the first one arg method we assume that is the one.- Parameters:
delegateObject
- .meth
- .context
- .- Returns:
- .
-