|
||||||||||
| 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.component.AbstractInjectionTargetBean<T>
org.apache.webbeans.decorator.WebBeansDecorator<T>
T - decorator type infopublic class WebBeansDecorator<T>
Defines decorators. It wraps the bean instance related
with decorator class. Actually, each decorator is an instance
of the ManagedBean.
| Field Summary | |
|---|---|
protected Set<Annotation> |
delegateBindings
Delegate field bindings |
protected Field |
delegateField
|
protected Type |
delegateType
Delegate field class type |
| Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean |
|---|
decorators, inheritedMetaData, interceptorStack |
| 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 | |
|---|---|
WebBeansDecorator(AbstractInjectionTargetBean<T> wrappedBean)
Creates a new decorator bean instance with the given wrapped bean. |
|
WebBeansDecorator(AbstractInjectionTargetBean<T> wrappedBean,
javax.enterprise.inject.spi.Decorator<T> customDecorator)
Creates a new decorator bean instance with the given wrapped bean and custom decorator bean. |
|
| Method Summary | |
|---|---|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
Class<?> |
getBeanClass()
Get return types of the bean. |
Class<?> |
getClazz()
|
Set<Type> |
getDecoratedTypes()
|
AbstractOwbBean<T> |
getDelegateComponent()
|
Set<Annotation> |
getDelegateQualifiers()
|
Type |
getDelegateType()
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
String |
getName()
Name of the bean. |
Set<Annotation> |
getQualifiers()
|
Class<? extends Annotation> |
getScope()
|
Set<Class<? extends Annotation>> |
getStereotypes()
|
Set<Type> |
getTypes()
|
protected void |
init()
|
protected void |
initDelegate()
|
boolean |
isAlternative()
|
boolean |
isDecoratorMatch(Set<Type> apiTypes,
Set<Annotation> annotations)
|
boolean |
isNullable()
|
boolean |
isPassivationCapable()
True if passivation capable false otherwise. |
boolean |
isSerializable()
Returns true if bean is capable of serializable, false otherwise. |
void |
setDelegate(Object instance,
Object delegate)
|
void |
setInjections(Object proxy,
javax.enterprise.context.spi.CreationalContext<?> cretionalContext)
|
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, equals, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString |
| 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 |
| Methods inherited from interface org.apache.webbeans.component.OwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Field Detail |
|---|
protected Type delegateType
protected Set<Annotation> delegateBindings
protected Field delegateField
| Constructor Detail |
|---|
public WebBeansDecorator(AbstractInjectionTargetBean<T> wrappedBean,
javax.enterprise.inject.spi.Decorator<T> customDecorator)
wrappedBean - wrapped bean instancecustomDecorator - custom decoratorpublic WebBeansDecorator(AbstractInjectionTargetBean<T> wrappedBean)
wrappedBean - wrapped bean instance| Method Detail |
|---|
protected void init()
protected void initDelegate()
public boolean isPassivationCapable()
OwbBean
isPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>
public boolean isDecoratorMatch(Set<Type> apiTypes,
Set<Annotation> annotations)
isDecoratorMatch in interface OwbDecorator<T>public Set<Annotation> getDelegateQualifiers()
getDelegateQualifiers in interface javax.enterprise.inject.spi.Decorator<T>public Type getDelegateType()
getDelegateType in interface javax.enterprise.inject.spi.Decorator<T>
public void setDelegate(Object instance,
Object delegate)
setDelegate in interface OwbDecorator<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractInjectionTargetBean
createInstance in class AbstractInjectionTargetBean<T>creationalContext - the contextual instance shall be created in
public void setInjections(Object proxy,
javax.enterprise.context.spi.CreationalContext<?> cretionalContext)
setInjections in interface OwbDecorator<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 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 AbstractOwbBean<T> getDelegateComponent()
getDelegateComponent in interface OwbDecorator<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractInjectionTargetBean
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractInjectionTargetBean<T>public Class<?> getClazz()
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 Set<Type> getDecoratedTypes()
getDecoratedTypes in interface javax.enterprise.inject.spi.Decorator<T>public boolean isAlternative()
AbstractOwbBean
isAlternative in interface javax.enterprise.inject.spi.Bean<T>isAlternative in class AbstractOwbBean<T>public void validatePassivationDependencies()
OwbBean
validatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractInjectionTargetBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||