|
||||||||||
| 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, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, 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. |
|
void |
dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
boolean |
equals(Object object)
|
|
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)
|
|
int |
hashCode()
|
|
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, destroyInstance, getBeanClass, getId, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, 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 boolean isPassivationCapable(Class<?> returnType,
Integer modifiers)
public void validatePassivationDependencies()
OwbBean
validatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractOwbBean<T>public int hashCode()
hashCode in class AbstractOwbBean<T>public boolean equals(Object object)
equals in class AbstractOwbBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||