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(Set, List, Object[], CommandContext).
the factory| Modifier and Type | Method and Description |
|---|---|
void |
postInvoke(Set<Annotation> annotations,
List<? extends ParameterData<?>> parameters,
Object[] args,
CommandContext context)
Called after the parameter is invoked.
|
boolean |
preInvoke(Set<Annotation> annotations,
List<? extends ParameterData<?>> parameters,
Object[] args,
CommandContext context)
Called before the parameter is invoked.
|
boolean |
preProcess(Set<Annotation> annotations,
List<? extends ParameterData<?>> parameters,
CommandContext context)
Called before parameters are processed.
|
boolean preProcess(Set<Annotation> annotations, List<? extends ParameterData<?>> parameters, CommandContext context) throws CommandException, ParameterException, UnconsumedParameterException
annotations - set of annotations that apply to the commandparameters - the list of parameterscontext - the contextCommandException - can be thrown for an error, which will stop invocationParameterException - on parameter errorUnconsumedParameterExceptionboolean preInvoke(Set<Annotation> annotations, List<? extends ParameterData<?>> parameters, Object[] args, CommandContext context) throws CommandException, ParameterException, UnconsumedParameterException
annotations - set of annotations that apply to the commandparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextCommandException - can be thrown for an error, which will stop invocationParameterException - on parameter errorUnconsumedParameterExceptionvoid postInvoke(Set<Annotation> annotations, List<? extends ParameterData<?>> parameters, Object[] args, CommandContext context) throws CommandException, ParameterException, UnconsumedParameterException
annotations - set of annotations that apply to the commandparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextCommandException - can be thrown for an errorParameterException - on parameter errorUnconsumedParameterExceptionCopyright © 2015. All Rights Reserved.