public class SelfInterceptorBean<T> extends InterceptorBean<T> implements javax.enterprise.inject.spi.Interceptor<T>
Implicit self-interceptor Bean implementation. This is Interceptors which got defined by having an @AroundInvoke, @AroundTimeout, etc method inside a bean itself. In that case all business method invocations on that bean are intercepted via those methods in the bean.
InterceptorBean.MultiMethodInvocationContext
aroundConstructMethod, aroundInvokeMethod
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
Constructor and Description |
---|
SelfInterceptorBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeanAttributesImpl<T> beanAttributes,
Class<T> beanClass,
Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods,
Method aroundConstruct) |
Modifier and Type | Method and Description |
---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> context) |
Set<Annotation> |
getInterceptorBindings() |
boolean |
isAroundInvoke() |
getInterceptorMethods, getScope, intercept, intercepts
getAnnotatedType, getInjectionTarget, getProducer
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
public SelfInterceptorBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, BeanAttributesImpl<T> beanAttributes, Class<T> beanClass, Map<javax.enterprise.inject.spi.InterceptionType,Method[]> interceptionMethods, Method aroundConstruct)
public boolean isAroundInvoke()
public Set<Annotation> getInterceptorBindings()
getInterceptorBindings
in interface javax.enterprise.inject.spi.Interceptor<T>
public T create(javax.enterprise.context.spi.CreationalContext<T> context)
AbstractOwbBean
create
in interface javax.enterprise.context.spi.Contextual<T>
create
in class AbstractOwbBean<T>
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.