public class PluggableLookupCommand
extends org.apache.commons.chain.generic.LookupCommand
This chains class performs a check to verify the catalog exists.
If the catalog doesn't exist, it returns true
if the
optional
property in the super class is true
.
If the catalog is not found and the command is not optional, it returns a
false
value. Otherwise, if the catalog exists, the super
implementation is invoked. The name of the command can be a value
binding expression. The value is evaluated if it contains an expression
and the resolved command is invoked.
Constructor and Description |
---|
PluggableLookupCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.apache.commons.chain.Context context)
Adds an additional check to determine if the catalog name is loaded.
|
getCatalog, getCatalogFactory, getCatalogName, getCommand, getCommandName, getName, getNameKey, isIgnoreExecuteResult, isIgnorePostprocessResult, isOptional, postprocess, setCatalogFactory, setCatalogName, setIgnoreExecuteResult, setIgnorePostprocessResult, setName, setNameKey, setOptional
public boolean execute(org.apache.commons.chain.Context context) throws Exception
Adds an additional check to determine if the catalog name is loaded. If loaded, the super implementation is invoked. Otherwise, the chain continues if the command is optional.
execute
in interface org.apache.commons.chain.Command
execute
in class org.apache.commons.chain.generic.LookupCommand
context
- chains contexttrue
if the chain is doneException
- up the calling chainCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.