|
||||||||||
| 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(java.lang.Class<? extends java.lang.annotation.Annotation> binding,
java.lang.annotation.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()
|
java.lang.Class<?> |
getBeanClass()
Get return types of the bean. |
java.lang.Class<?> |
getClazz()
Gets the interceptor class. |
AbstractOwbBean<T> |
getDelegate()
|
java.util.Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
java.util.Set<java.lang.annotation.Annotation> |
getInterceptorBindings()
|
java.util.Set<javax.enterprise.inject.spi.Interceptor<?>> |
getMetaInceptors()
|
java.lang.String |
getName()
Name of the bean. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
|
boolean |
hasBinding(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> bindingTypes,
java.util.List<java.lang.annotation.Annotation> annots)
Checks whether all of this interceptors binding types are present on the bean, with Nonbinding member values. |
java.lang.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(java.lang.Class<?> clazz)
Sets interceptor class. |
void |
setInjections(java.lang.Object proxy,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
|
java.lang.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, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, 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(java.lang.Class<? extends java.lang.annotation.Annotation> binding,
java.lang.annotation.Annotation annot)
addInterceptorBinding in interface OwbInterceptor<T>binding - interceptor binding annotation. classannot - binding type annotation
public boolean hasBinding(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> bindingTypes,
java.util.List<java.lang.annotation.Annotation> annots)
Nonbinding member values.
hasBinding in interface OwbInterceptor<T>bindingTypes - binding types of beanannots - binding types annots of bean
public java.lang.Class<?> getClazz()
getClazz in interface OwbInterceptor<T>public java.util.Set<javax.enterprise.inject.spi.Interceptor<?>> getMetaInceptors()
getMetaInceptors in interface OwbInterceptor<T>public void setClazz(java.lang.Class<?> clazz)
setClazz in interface OwbInterceptor<T>clazz - class instancepublic java.util.Set<java.lang.annotation.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(java.lang.Object proxy,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
setInjections in interface OwbInterceptor<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>getQualifiers in class AbstractOwbBean<T>public java.lang.String getName()
AbstractOwbBean
getName in interface javax.enterprise.inject.spi.Bean<T>getName in class AbstractOwbBean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.Bean<T>getScope in class AbstractOwbBean<T>public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes in interface javax.enterprise.inject.spi.Bean<T>getTypes in class AbstractOwbBean<T>public java.util.Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractOwbBean
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>public java.lang.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 java.lang.Class<?> getBeanClass()
AbstractOwbBean
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class AbstractOwbBean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
AbstractOwbBean
getStereotypes in interface javax.enterprise.inject.spi.Bean<T>getStereotypes in class AbstractOwbBean<T>
public java.lang.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 | |||||||||