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 |
aroundConstructMethod |
protected Method |
aroundInvokeMethod
This is for performance reasons
|
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
Modifier | Constructor and Description |
---|---|
protected |
InterceptorBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeanAttributes<T> beanAttributes,
Class<T> beanClass,
Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods,
Method aroundConstruct,
InjectionTargetFactoryImpl<T> factory) |
|
InterceptorBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeanAttributesImpl<T> beanAttributes,
Class<T> beanClass,
Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods,
Method aroundConstructMethod) |
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) |
getAnnotatedType, getInjectionTarget, getProducer
create, destroy, getBeanClass, getId, getInjectionPoints, getLogger, getReturnType, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isPassivationCapable, isSpecializedBean, setEnabled, setSpecializedBean, toString
getName, getQualifiers, getStereotypes, getTypes, isNullable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected Method aroundInvokeMethod
protected Method aroundConstructMethod
protected InterceptorBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, BeanAttributes<T> beanAttributes, Class<T> beanClass, Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods, Method aroundConstruct, InjectionTargetFactoryImpl<T> factory)
public InterceptorBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, BeanAttributesImpl<T> beanAttributes, Class<T> beanClass, Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods, Method aroundConstructMethod)
public Class<? extends Annotation> getScope()
getScope
in interface BeanAttributes<T>
getScope
in class BeanAttributesImpl<T>
public Method[] getInterceptorMethods(javax.enterprise.inject.spi.InterceptionType interceptionType)
interceptionType
- null
public boolean intercepts(javax.enterprise.inject.spi.InterceptionType interceptionType)
intercepts
in interface javax.enterprise.inject.spi.Interceptor<T>
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.