@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface Interceptor
EventInterceptor implementations.
The annotation allows the specification of an identifier, event types and
an order. These are used to restrict the events an
EventInterceptor subscribes to.
When used in combination with the cache configuration the annotation
members identifier() and order() can be overridden by
the corresponding XML elements.
| Modifier and Type | Optional Element | Description |
|---|---|---|
CacheLifecycleEvent.Type[] |
cacheLifecycleEvents |
This element specifies all types of
CacheLifecycleEvent.Types
the interceptor would like to be invoked on. |
EntryEvent.Type[] |
entryEvents |
This element specifies all types of
EntryEvent.Types the
interceptor would like to be invoked on. |
EntryProcessorEvent.Type[] |
entryProcessorEvents |
This element specifies all types of
EntryProcessorEvent.Types
the interceptor would like to be invoked on. |
String |
identifier |
A unique identifier for the interceptor.
|
Interceptor.Order |
order |
Iff a value of
Interceptor.Order.HIGH is provided this interceptor will
request to be the first in the chain of interceptors. |
TransactionEvent.Type[] |
transactionEvents |
This element specifies all types of
TransactionEvent.Types the
interceptor would like to be invoked on. |
TransferEvent.Type[] |
transferEvents |
This element specifies all types of
TransferEvent.Types the
interceptor would like to be invoked on. |
UnsolicitedCommitEvent.Type[] |
unsolicitedEvents |
This element specifies all types of
UnsolicitedCommitEvent.Types
the interceptor would like to be invoked on. |
public abstract String identifier
public abstract EntryEvent.Type[] entryEvents
EntryEvent.Types the
interceptor would like to be invoked on.EntryEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract EntryProcessorEvent.Type[] entryProcessorEvents
EntryProcessorEvent.Types
the interceptor would like to be invoked on.EntryProcessorEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract TransferEvent.Type[] transferEvents
TransferEvent.Types the
interceptor would like to be invoked on.TransferEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract TransactionEvent.Type[] transactionEvents
TransactionEvent.Types the
interceptor would like to be invoked on.TransactionEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract UnsolicitedCommitEvent.Type[] unsolicitedEvents
UnsolicitedCommitEvent.Types
the interceptor would like to be invoked on.UnsolicitedCommitEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract CacheLifecycleEvent.Type[] cacheLifecycleEvents
CacheLifecycleEvent.Types
the interceptor would like to be invoked on.CacheLifecycleEvent.Types the
EventInterceptor would like to
receive notifications onpublic abstract Interceptor.Order order
Interceptor.Order.HIGH is provided this interceptor will
request to be the first in the chain of interceptors.EventInterceptor
should be first (Interceptor.Order.HIGH) in the chain of
EventInterceptors