public interface InterceptorInfo extends BeanInfo
@Interceptor.
An interceptor declares a set of interceptor binding annotations,
used to associate the interceptor with target beans. It also declares at most one interceptor method
for each interception type. Interception types are:
@AroundInvoke: intercept business method invocations,@AroundConstruct: intercept constructor invocations,@PostConstruct: called after the container creates the target instance
and completes dependency injection,@PreDestroy: called before the container destroys the target instance.@Priority to become enabled.
Note that this description applies to CDI Lite. There are more ways to declare an interceptor, but those are only present in CDI Full.
| Modifier and Type | Method and Description |
|---|---|
default InterceptorInfo |
asInterceptor()
Returns this bean as an interceptor.
|
java.util.Collection<AnnotationInfo> |
interceptorBindings()
Returns the set of interceptor binding annotations
declared on this interceptor.
|
boolean |
intercepts(InterceptionType interceptionType)
Returns whether this interceptor declares an interceptor method for given
interception type.
|
default boolean |
isInterceptor()
Returns whether this bean is an interceptor.
|
declaringClass, disposer, injectionPoints, isAlternative, isClassBean, isProducerField, isProducerMethod, isSynthetic, name, priority, producerField, producerMethod, qualifiers, scope, stereotypes, typesjava.util.Collection<AnnotationInfo> interceptorBindings()
nullboolean intercepts(InterceptionType interceptionType)
interceptionType - the type of interceptiondefault boolean isInterceptor()
BeanInfoisInterceptor in interface BeanInfodefault InterceptorInfo asInterceptor()
BeanInfoasInterceptor in interface BeanInfonull