T - decorator type infopublic class WebBeansDecorator<T> extends AbstractInjectionTargetBean<T> implements OwbDecorator<T>
ManagedBean.| Modifier and Type | Field and Description |
|---|---|
protected Set<Annotation> |
delegateBindings
Delegate field bindings
|
protected Field |
delegateField |
protected Type |
delegateType
Delegate field class type
|
decorators, inheritedMetaData, interceptorStackapiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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.
|
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createComponentInstance, createDefaultInstance, destroyComponentInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaDataaddApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getId, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBeanprotected Type delegateType
protected Set<Annotation> delegateBindings
protected Field delegateField
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 instanceprotected void init()
protected void initDelegate()
public boolean isPassivationCapable()
OwbBeanisPassivationCapable 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)
AbstractInjectionTargetBeancreateInstance in class AbstractInjectionTargetBean<T>creationalContext - the contextual instance shall be created inpublic 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()
AbstractOwbBeangetName 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()
AbstractOwbBeanisNullable in interface javax.enterprise.inject.spi.Bean<T>isNullable in class AbstractOwbBean<T>public boolean isSerializable()
AbstractOwbBeanisSerializable in interface OwbBean<T>isSerializable in class AbstractOwbBean<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractOwbBeangetInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>public Class<?> getClazz()
public Class<?> getBeanClass()
AbstractOwbBeangetBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class AbstractOwbBean<T>public Set<Class<? extends Annotation>> getStereotypes()
AbstractOwbBeangetStereotypes 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()
AbstractOwbBeanisAlternative in interface javax.enterprise.inject.spi.Bean<T>isAlternative in class AbstractOwbBean<T>public void validatePassivationDependencies()
OwbBeanvalidatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractInjectionTargetBean<T>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.