public interface InvokeHandler
ParametricBuilder.
Invocation handlers are created by InvokeListeners. Multiple
listeners and handlers can be registered, and all be run. However, if one handler
throws an exception, future handlers will not execute and the command will
not execute (if thrown in
preInvoke(Object, Method, ParameterData[], Object[], CommandContext, CommandLocals)).
the factory| Modifier and Type | Method and Description |
|---|---|
void |
postInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context,
CommandLocals locals)
Called after the parameter is invoked.
|
boolean |
preInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context,
CommandLocals locals)
Called before the parameter is invoked.
|
boolean |
preProcess(Object object,
Method method,
ParameterData[] parameters,
CommandContext context,
CommandLocals locals)
Called before parameters are processed.
|
boolean preProcess(Object object, Method method, ParameterData[] parameters, CommandContext context, CommandLocals locals) throws CommandException, ParameterException
object - the objectmethod - the methodparameters - the list of parameterscontext - the contextlocals - the locals objectCommandException - can be thrown for an error, which will stop invocationParameterException - on parameter errorboolean preInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context, CommandLocals locals) throws CommandException, ParameterException
object - the objectmethod - the methodparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextlocals - the locals objectCommandException - can be thrown for an error, which will stop invocationParameterException - on parameter errorvoid postInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context, CommandLocals locals) throws CommandException, ParameterException
object - the objectmethod - the methodparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextlocals - the locals objectCommandException - can be thrown for an errorParameterException - on parameter errorCopyright © 2015. All Rights Reserved.