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
FieldsModifier and TypeFieldDescriptionprivate BeanFactoryAdapterprivate static final Stringprivate Stringprivate static final Stringprivate ObjectFields inherited from class org.chenile.owiz.impl.CommandBase
commandDescriptor, orchConfigurator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Methodwe don't know what is the signature since the arg type is unknown.voidsetBeanFactoryAdapter(BeanFactoryAdapter beanFactoryAdapter) voidsetMethodName(String methodName) voidsetUnderlyingObject(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:
doExecutein 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:
- .
-