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 .
author: Sean Schofield version: $Revision: 411876 $ since: Chain 1.1 |