@Retention(value=RUNTIME) @Inherited @Target(value={METHOD,ANNOTATION_TYPE}) public @interface Handler
Modifier and Type | Optional Element and Description |
---|---|
String |
condition
Defines a filter condition as Expression Language.
|
boolean |
enabled
Enable or disable the handler.
|
Filter[] |
filters
Add any numbers of filters to the handler.
|
Class<? extends HandlerInvocation> |
invocation
Each handler call is implemented as an invocation object that implements the invocation mechanism.
|
int |
priority
Handlers are ordered by priority and handlers with higher priority are processed before
those with lower priority, i.e.
|
boolean |
rejectSubtypes
Define whether or not the handler accepts sub types of the message type it declares in its
signature.
|
public abstract Filter[] filters
public abstract String condition
true
to allow the event or false
to block it from delivery to the handler.
The message itself is available as "msg" variable.public abstract int priority
public abstract boolean rejectSubtypes
public abstract boolean enabled
public abstract Class<? extends HandlerInvocation> invocation
Copyright © 2018. All rights reserved.