public class WebBeansInterceptor<T> extends AbstractOwbBean<T> implements OwbInterceptor<T>
WebBeans interceotor classes has at least one InterceptorBinding
annotation. It can be defined on the class or method level at the component.
WebBeans interceptors are called after the EJB related interceptors are
called in the chain. Semantics of the interceptors are specified by the EJB
specificatin.
apiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType| Constructor and Description |
|---|
WebBeansInterceptor(AbstractInjectionTargetBean<T> delegateBean) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptorBinding(Class<? extends Annotation> binding,
Annotation annot)
Add new binding type to the interceptor.
|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
javax.enterprise.inject.spi.AnnotatedType<T> |
getAnnotatedType() |
Class<?> |
getBeanClass()
Get return types of the bean.
|
Class<?> |
getClazz()
Gets the interceptor class.
|
AbstractOwbBean<T> |
getDelegate() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
Set<Annotation> |
getInterceptorBindings() |
Set<javax.enterprise.inject.spi.Interceptor<?>> |
getMetaInceptors() |
String |
getName()
Name of the bean.
|
Set<Annotation> |
getQualifiers() |
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
boolean |
hasBinding(List<Class<? extends Annotation>> bindingTypes,
List<Annotation> annots)
Checks whether all of this interceptors binding types are present on the bean, with
Nonbinding member values. |
Object |
intercept(javax.enterprise.inject.spi.InterceptionType type,
T instance,
javax.interceptor.InvocationContext ctx) |
boolean |
intercepts(javax.enterprise.inject.spi.InterceptionType type) |
boolean |
isAlternative() |
boolean |
isNullable() |
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
boolean |
isSerializable()
Returns true if bean is capable of
serializable, false otherwise.
|
void |
setInjections(Object proxy,
javax.enterprise.context.spi.CreationalContext<?> creationalContext) |
String |
toString() |
void |
validatePassivationDependencies()
If bean is passivation capable, it validate all of its dependencies.
|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, equals, getId, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBeanpublic WebBeansInterceptor(AbstractInjectionTargetBean<T> delegateBean)
public AbstractOwbBean<T> getDelegate()
getDelegate in interface OwbInterceptor<T>public javax.enterprise.inject.spi.AnnotatedType<T> getAnnotatedType()
getAnnotatedType in interface OwbInterceptor<T>public void addInterceptorBinding(Class<? extends Annotation> binding, Annotation annot)
addInterceptorBinding in interface OwbInterceptor<T>binding - interceptor binding annotation. classannot - binding type annotationpublic boolean hasBinding(List<Class<? extends Annotation>> bindingTypes, List<Annotation> annots)
Nonbinding member values.hasBinding in interface OwbInterceptor<T>bindingTypes - binding types of beanannots - binding types annots of beanpublic Class<?> getClazz()
getClazz in interface OwbInterceptor<T>public Set<javax.enterprise.inject.spi.Interceptor<?>> getMetaInceptors()
getMetaInceptors in interface OwbInterceptor<T>public Set<Annotation> getInterceptorBindings()
getInterceptorBindings in interface javax.enterprise.inject.spi.Interceptor<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBeancreateInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created inpublic void setInjections(Object proxy, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
setInjections in interface OwbInterceptor<T>public Set<Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>getQualifiers in class AbstractOwbBean<T>public String getName()
AbstractOwbBeangetName in interface javax.enterprise.inject.spi.Bean<T>getName in class AbstractOwbBean<T>public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.Bean<T>getScope in class AbstractOwbBean<T>public Set<Type> getTypes()
getTypes in interface javax.enterprise.inject.spi.Bean<T>getTypes in class AbstractOwbBean<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractOwbBeangetInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>public String toString()
AbstractOwbBeantoString in class AbstractOwbBean<T>public boolean isNullable()
AbstractOwbBeanisNullable in interface javax.enterprise.inject.spi.Bean<T>isNullable in class AbstractOwbBean<T>public boolean isSerializable()
AbstractOwbBeanisSerializable in interface OwbBean<T>isSerializable in class AbstractOwbBean<T>public Class<?> getBeanClass()
AbstractOwbBeangetBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class AbstractOwbBean<T>public Set<Class<? extends Annotation>> getStereotypes()
AbstractOwbBeangetStereotypes in interface javax.enterprise.inject.spi.Bean<T>getStereotypes in class AbstractOwbBean<T>public Object intercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)
intercept in interface javax.enterprise.inject.spi.Interceptor<T>public boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
intercepts in interface javax.enterprise.inject.spi.Interceptor<T>public boolean isAlternative()
AbstractOwbBeanisAlternative in interface javax.enterprise.inject.spi.Bean<T>isAlternative in class AbstractOwbBean<T>public boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public void validatePassivationDependencies()
OwbBeanvalidatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractOwbBean<T>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.