java.lang.Objectorg.apache.commons.chain.generic.LookupCommand
org.apache.commons.chain.generic.DispatchLookupCommand
All Implemented Interfaces:
Filter
This command combines elements of the LookupCommand with the
DispatchCommand . Look up a specified Command (which could
also be a org.apache.commons.chain.Chain ) in a
org.apache.commons.chain.Catalog , and delegate execution to
it. Introspection is used to lookup the appropriate method to delegate
execution to. If the delegated-to Command is also a
Filter , its postprocess() method will also be invoked
at the appropriate time.
The name of the Command can be specified either directly (via
the name property) or indirectly (via the nameKey
property). Exactly one of these must be set.
The name of the method to be called can be specified either directly
(via the method property) or indirectly (via the
methodKey property). Exactly one of these must be set.
If the optional property is set to true,
failure to find the specified command in the specified catalog will be
silently ignored. Otherwise, a lookup failure will trigger an
IllegalArgumentException.
Sean - Schofield$ - Revision: 480477 $Chain - 1.1| Constructor: |
|---|
catalogFactory property.
This property can be set later using setProperty, or if it is not set,
the static singleton instance from CatalogFactory.getInstance() will be used. |
catalogFactory property
to given factory.
|
| Method from org.apache.commons.chain.generic.DispatchLookupCommand Summary: |
|---|
| execute, getArguments, getMethod, getMethodKey, getSignature, setMethod, setMethodKey |
| Methods from org.apache.commons.chain.generic.LookupCommand: |
|---|
| execute, getCatalog, getCatalogFactory, getCatalogName, getCommand, getCommandName, getName, getNameKey, isIgnoreExecuteResult, isIgnorePostprocessResult, isOptional, postprocess, setCatalogFactory, setCatalogName, setIgnoreExecuteResult, setIgnorePostprocessResult, setName, setNameKey, setOptional |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.commons.chain.generic.DispatchLookupCommand Detail: |
|---|
Look up the specified command, and (if found) execute it. |
getSignature() |
|
|
Return a |
|
|