public class CommandLoggingHandler extends AbstractInvokeListener implements InvokeHandler, Closeable
| Constructor and Description |
|---|
CommandLoggingHandler(WorldEdit worldEdit,
Logger logger)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InvokeHandler |
createInvokeHandler()
Create a new invocation handler.
|
void |
postInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context)
Called after the parameter is invoked.
|
void |
preInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context)
Called before the parameter is invoked.
|
void |
preProcess(Object object,
Method method,
ParameterData[] parameters,
CommandContext context)
Called before parameters are processed.
|
updateDescriptionpublic void preProcess(Object object, Method method, ParameterData[] parameters, CommandContext context) throws CommandException, ParameterException
InvokeHandlerpreProcess in interface InvokeHandlerobject - the objectmethod - the methodparameters - the list of parameterscontext - the contextCommandException - can be thrown for an error, which will stop invocationParameterException - on parameter errorpublic void preInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context) throws CommandException
InvokeHandlerpreInvoke in interface InvokeHandlerobject - the objectmethod - the methodparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextCommandException - can be thrown for an error, which will stop invocationpublic void postInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context) throws CommandException
InvokeHandlerpostInvoke in interface InvokeHandlerobject - the objectmethod - the methodparameters - the list of parametersargs - the arguments to be given to the methodcontext - the contextCommandException - can be thrown for an errorpublic InvokeHandler createInvokeHandler()
InvokeListenerAn example use of an InvokeHandler would be to verify permissions
added by the CommandPermissions annotation.
For simple InvokeHandler, an object can implement both this
interface and InvokeHandler.
createInvokeHandler in interface InvokeListenerpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2010-2014. All Rights Reserved.