|
||||||||||
| 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 java.util.Set<java.lang.annotation.Annotation> |
delegateBindings
Delegate field bindings |
protected java.lang.reflect.Field |
delegateField
|
protected java.lang.reflect.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. |
|
| Method Summary | |
|---|---|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
java.lang.Class<?> |
getBeanClass()
Get return types of the bean. |
java.lang.Class<?> |
getClazz()
|
java.util.Set<java.lang.reflect.Type> |
getDecoratedTypes()
|
AbstractOwbBean<T> |
getDelegateComponent()
|
java.util.Set<java.lang.annotation.Annotation> |
getDelegateQualifiers()
|
java.lang.reflect.Type |
getDelegateType()
|
java.util.Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
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()
|
protected void |
init()
|
protected void |
initDelegate()
|
boolean |
isAlternative()
|
boolean |
isDecoratorMatch(java.util.Set<java.lang.reflect.Type> apiTypes,
java.util.Set<java.lang.annotation.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(java.lang.Object instance,
java.lang.Object delegate)
|
void |
setInjections(java.lang.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, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString |
| 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 |
| 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 java.lang.reflect.Type delegateType
protected java.util.Set<java.lang.annotation.Annotation> delegateBindings
protected java.lang.reflect.Field delegateField
| Constructor Detail |
|---|
public WebBeansDecorator(AbstractInjectionTargetBean<T> wrappedBean,
javax.enterprise.inject.spi.Decorator<T> customDecorator)
wrappedBean - wrapped bean instancepublic 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(java.util.Set<java.lang.reflect.Type> apiTypes,
java.util.Set<java.lang.annotation.Annotation> annotations)
isDecoratorMatch in interface OwbDecorator<T>public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
getDelegateQualifiers in interface javax.enterprise.inject.spi.Decorator<T>public java.lang.reflect.Type getDelegateType()
getDelegateType in interface javax.enterprise.inject.spi.Decorator<T>
public void setDelegate(java.lang.Object instance,
java.lang.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(java.lang.Object proxy,
javax.enterprise.context.spi.CreationalContext<?> cretionalContext)
setInjections in interface OwbDecorator<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 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 java.util.Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractInjectionTargetBean
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractInjectionTargetBean<T>public java.lang.Class<?> getClazz()
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.util.Set<java.lang.reflect.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 | |||||||||