Package org.apache.webbeans.component
Class SelfInterceptorBean<T>
- java.lang.Object
-
- org.apache.webbeans.component.BeanAttributesImpl<T>
-
- org.apache.webbeans.component.AbstractOwbBean<T>
-
- org.apache.webbeans.component.InjectionTargetBean<T>
-
- org.apache.webbeans.component.InterceptorBean<T>
-
- org.apache.webbeans.component.SelfInterceptorBean<T>
-
- All Implemented Interfaces:
Serializable,javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<T>,javax.enterprise.inject.spi.Interceptor<T>,javax.enterprise.inject.spi.PassivationCapable,OwbBean<T>
public class SelfInterceptorBean<T> extends InterceptorBean<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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.webbeans.component.InterceptorBean
InterceptorBean.MultiMethodInvocationContext
-
-
Field Summary
-
Fields inherited from class org.apache.webbeans.component.InterceptorBean
aroundInvokeMethod
-
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
-
-
Constructor Summary
Constructors Constructor Description SelfInterceptorBean(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(javax.enterprise.context.spi.CreationalContext<T> context)Set<Annotation>getInterceptorBindings()booleanisAroundInvoke()-
Methods inherited from class org.apache.webbeans.component.InterceptorBean
getInterceptorMethods, getScope, intercept, intercepts
-
Methods inherited from class org.apache.webbeans.component.InjectionTargetBean
defineInterceptorsIfNeeded, getAnnotatedType, getInjectionTarget, getProducer, providedId
-
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addToStringInfo, destroy, equals, getBeanClass, getId, getInjectionPoints, getLogger, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isPassivationCapable, isSpecializedBean, setEnabled, setSpecializedBean, toString
-
Methods inherited from class org.apache.webbeans.component.BeanAttributesImpl
getName, getQualifiers, getStereotypes, getTypes, isAlternative, isNullable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, isNullable
-
-
-
-
Constructor Detail
-
SelfInterceptorBean
public SelfInterceptorBean(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)
-
-
Method Detail
-
isAroundInvoke
public boolean isAroundInvoke()
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Returns:
- always an empty Set as this interceptor doesn't have any InterceptorBindings
-
create
public T create(javax.enterprise.context.spi.CreationalContext<T> context)
Description copied from class:AbstractOwbBean- Specified by:
createin interfacejavax.enterprise.context.spi.Contextual<T>- Overrides:
createin classAbstractOwbBean<T>
-
-