public interface InvokeListener
ParametricBuilder
.Modifier and Type | Method and Description |
---|---|
InvokeHandler |
createInvokeHandler()
Create a new invocation handler.
|
void |
updateDescription(java.lang.Object object,
java.lang.reflect.Method method,
ParameterData[] parameters,
SimpleDescription description)
During creation of a
CommandCallable by a ParametricBuilder ,
this will be called in case the description needs to be updated. |
InvokeHandler createInvokeHandler()
An 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
.
void updateDescription(java.lang.Object object, java.lang.reflect.Method method, ParameterData[] parameters, SimpleDescription description)
CommandCallable
by a ParametricBuilder
,
this will be called in case the description needs to be updated.object
- the objectmethod
- the methodparameters
- a list of parametersdescription
- the description to be updated