|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.intercept.webbeans.WebBeansInterceptor<T>
public class WebBeansInterceptor<T>
Defines the webbeans specific interceptors.
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.
| Field Summary |
|---|
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
| Constructor Summary | |
|---|---|
WebBeansInterceptor(AbstractInjectionTargetBean<T> delegateBean)
|
|
| Method Summary | |
|---|---|
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 |
setClazz(Class<?> clazz)
Sets interceptor class. |
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. |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, equals, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.context.spi.Contextual |
|---|
create, destroy |
| Constructor Detail |
|---|
public WebBeansInterceptor(AbstractInjectionTargetBean<T> delegateBean)
| Method Detail |
|---|
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 annotation
public 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 bean
public Class<?> getClazz()
getClazz in interface OwbInterceptor<T>public Set<javax.enterprise.inject.spi.Interceptor<?>> getMetaInceptors()
getMetaInceptors in interface OwbInterceptor<T>public void setClazz(Class<?> clazz)
setClazz in interface OwbInterceptor<T>clazz - class instancepublic Set<Annotation> getInterceptorBindings()
getInterceptorBindings in interface javax.enterprise.inject.spi.Interceptor<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBean
createInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created in
public 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()
AbstractOwbBean
getName 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()
AbstractOwbBean
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>public String toString()
AbstractOwbBean
toString in class AbstractOwbBean<T>public boolean isNullable()
AbstractOwbBean
isNullable in interface javax.enterprise.inject.spi.Bean<T>isNullable in class AbstractOwbBean<T>public boolean isSerializable()
AbstractOwbBean
isSerializable in interface OwbBean<T>isSerializable in class AbstractOwbBean<T>public Class<?> getBeanClass()
AbstractOwbBean
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class AbstractOwbBean<T>public Set<Class<? extends Annotation>> getStereotypes()
AbstractOwbBean
getStereotypes 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()
AbstractOwbBean
isAlternative in interface javax.enterprise.inject.spi.Bean<T>isAlternative in class AbstractOwbBean<T>public boolean isPassivationCapable()
OwbBean
isPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public void validatePassivationDependencies()
OwbBean
validatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractOwbBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||