|
||||||||||
| 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, logger, 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(CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
AnnotatedType<T> |
getAnnotatedType()
|
Class<?> |
getBeanClass()
Get return types of the bean. |
Class<?> |
getClazz()
Gets the interceptor class. |
AbstractOwbBean<T> |
getDelegate()
|
Set<InjectionPoint> |
getInjectionPoints()
|
Set<Annotation> |
getInterceptorBindings()
|
Set<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(InterceptionType type,
T instance,
InvocationContext ctx)
|
boolean |
intercepts(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,
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, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, 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 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<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 Interceptor<T>protected T createInstance(CreationalContext<T> creationalContext)
AbstractOwbBean
createInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created in
public void setInjections(Object proxy,
CreationalContext<?> creationalContext)
setInjections in interface OwbInterceptor<T>public Set<Annotation> getQualifiers()
getQualifiers in interface Bean<T>getQualifiers in class AbstractOwbBean<T>public String getName()
AbstractOwbBean
getName in interface Bean<T>getName in class AbstractOwbBean<T>public Class<? extends Annotation> getScope()
getScope in interface Bean<T>getScope in class AbstractOwbBean<T>public Set<Type> getTypes()
getTypes in interface Bean<T>getTypes in class AbstractOwbBean<T>public Set<InjectionPoint> getInjectionPoints()
AbstractOwbBean
getInjectionPoints in interface Bean<T>getInjectionPoints in class AbstractOwbBean<T>public String toString()
AbstractOwbBean
toString in class AbstractOwbBean<T>public boolean isNullable()
AbstractOwbBean
isNullable in interface 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 Bean<T>getBeanClass in class AbstractOwbBean<T>public Set<Class<? extends Annotation>> getStereotypes()
AbstractOwbBean
getStereotypes in interface Bean<T>getStereotypes in class AbstractOwbBean<T>
public Object intercept(InterceptionType type,
T instance,
InvocationContext ctx)
intercept in interface Interceptor<T>public boolean intercepts(InterceptionType type)
intercepts in interface Interceptor<T>public boolean isAlternative()
AbstractOwbBean
isAlternative in interface 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 | |||||||||