public abstract class InterceptorBean<T> extends InjectionTargetBean<T> implements javax.enterprise.inject.spi.Interceptor<T>
Abstract Interceptor Bean implementation.
Any Interceptor is also an InjectionTarget as they can contain @Inject InjectionPoints.
| Modifier and Type | Class and Description |
|---|---|
static class |
InterceptorBean.MultiMethodInvocationContext
An InvocationContext wraper for handling multiple interceptor methods.
|
| Modifier and Type | Field and Description |
|---|---|
protected Method |
aroundInvokeMethod
This is for performance reasons
|
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Modifier | Constructor and Description |
|---|---|
|
InterceptorBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> beanClass,
Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods) |
protected |
InterceptorBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> beanClass,
Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods,
InjectionTargetFactoryImpl<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Method[] |
getInterceptorMethods(javax.enterprise.inject.spi.InterceptionType interceptionType) |
Class<? extends Annotation> |
getScope()
Interceptors are by default @Dependent scoped.
|
Object |
intercept(javax.enterprise.inject.spi.InterceptionType interceptionType,
T instance,
javax.interceptor.InvocationContext invocationContext) |
boolean |
intercepts(javax.enterprise.inject.spi.InterceptionType interceptionType) |
defineInterceptorsIfNeeded, getAnnotatedType, getInjectionTarget, getProducer, providedIdaddToStringInfo, create, destroy, equals, getBeanClass, getId, getInjectionPoints, getLogger, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isPassivationCapable, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getStereotypes, getTypes, isAlternative, isNullableclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected Method aroundInvokeMethod
protected InterceptorBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes, Class<T> beanClass, Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods, InjectionTargetFactoryImpl<T> factory)
public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.BeanAttributes<T>getScope in class BeanAttributesImpl<T>public Method[] getInterceptorMethods(javax.enterprise.inject.spi.InterceptionType interceptionType)
interceptionType - nullpublic boolean intercepts(javax.enterprise.inject.spi.InterceptionType interceptionType)
intercepts in interface javax.enterprise.inject.spi.Interceptor<T>Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.