@Retention(value=RUNTIME) @Target(value=TYPE) 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 and Description |
---|---|
CacheLifecycleEvent.Type[] |
cacheLifecycleEvents
This element specifies all types of
CacheLifecycleEvent.Type s
the interceptor would like to be invoked on. |
EntryEvent.Type[] |
entryEvents
This element specifies all types of
EntryEvent.Type s the
interceptor would like to be invoked on. |
EntryProcessorEvent.Type[] |
entryProcessorEvents
This element specifies all types of
EntryProcessorEvent.Type s
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.Type s the
interceptor would like to be invoked on. |
TransferEvent.Type[] |
transferEvents
This element specifies all types of
TransferEvent.Type s the
interceptor would like to be invoked on. |
UnsolicitedCommitEvent.Type[] |
unsolicitedEvents
This element specifies all types of
UnsolicitedCommitEvent.Type s
the interceptor would like to be invoked on. |
public abstract String identifier
public abstract EntryEvent.Type[] entryEvents
EntryEvent.Type
s the
interceptor would like to be invoked on.EntryEvent.Type
s the
EventInterceptor
would like to
receive notifications onpublic abstract EntryProcessorEvent.Type[] entryProcessorEvents
EntryProcessorEvent.Type
s
the interceptor would like to be invoked on.EntryProcessorEvent.Type
s the
EventInterceptor
would like to
receive notifications onpublic abstract TransferEvent.Type[] transferEvents
TransferEvent.Type
s the
interceptor would like to be invoked on.TransferEvent.Type
s the
EventInterceptor
would like to
receive notifications onpublic abstract TransactionEvent.Type[] transactionEvents
TransactionEvent.Type
s the
interceptor would like to be invoked on.TransactionEvent.Type
s the
EventInterceptor
would like to
receive notifications onpublic abstract UnsolicitedCommitEvent.Type[] unsolicitedEvents
UnsolicitedCommitEvent.Type
s
the interceptor would like to be invoked on.UnsolicitedCommitEvent.Type
s the
EventInterceptor
would like to
receive notifications onpublic abstract CacheLifecycleEvent.Type[] cacheLifecycleEvents
CacheLifecycleEvent.Type
s
the interceptor would like to be invoked on.CacheLifecycleEvent.Type
s 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
EventInterceptor
s