|
||||||||||
| 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.AbstractProducerBean<T>
T - bean type infopublic abstract class AbstractProducerBean<T>
Abstract class for producer components.
| Field Summary | |
|---|---|
protected InjectionTargetBean<?> |
ownerComponent
Owner of the producer field component |
| 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 | |
|---|---|
protected |
AbstractProducerBean(WebBeansType type,
Class<T> returnType,
InjectionTargetBean<?> ownerComponent)
Create a new instance. |
| Method Summary | ||
|---|---|---|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
|
protected
|
destroyBean(javax.enterprise.inject.spi.Bean<?> bean,
Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Destroys bean. |
|
protected void |
destroyInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroy the instance of the bean. |
|
void |
dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
|
InjectionTargetBean<?> |
getParent()
|
|
protected Object |
getParentInstance(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Returns producer bean's owner bean instance. |
|
protected Object |
getParentInstanceFromContext(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
|
|
protected boolean |
isPassivationCapable(Class<?> returnType,
Integer modifiers)
|
|
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, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isPassivationCapable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected InjectionTargetBean<?> ownerComponent
| Constructor Detail |
|---|
protected AbstractProducerBean(WebBeansType type,
Class<T> returnType,
InjectionTargetBean<?> ownerComponent)
type - webbeans typrreturnType - bean type infoownerComponent - owner bean| Method Detail |
|---|
public InjectionTargetBean<?> getParent()
getParent in interface IBeanHasParent<T>
public void dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
dispose in interface IBeanHasParent<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created in
protected <K> void destroyBean(javax.enterprise.inject.spi.Bean<?> bean,
Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
K - bean type infobean - bean infoinstance - bean instanceprotected Object getParentInstance(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
protected Object getParentInstanceFromContext(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
protected void destroyInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
destroyInstance in class AbstractOwbBean<T>instance - instance of the bean that is being destroyedcreationalContext - the contextual instance has been created inpublic Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>
protected boolean isPassivationCapable(Class<?> returnType,
Integer modifiers)
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 | |||||||||