Interface CommandAnnotationInterceptor<A extends Annotation>
- All Superinterfaces:
Ordered
- All Known Implementing Classes:
CommandCooldownInterceptor
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafter(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Object result) default CommandExecutionDecisionbefore(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation) default voidonError(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Throwable throwable) default voidvalidate(A annotation, Context context, CommandInvocationPlan invocation)
-
Method Details
-
validate
-
before
default CommandExecutionDecision before(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation) -
after
default void after(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Object result) -
onError
default void onError(A annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Throwable throwable)
-