|
||||||||||
| 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>
org.apache.webbeans.component.ProducerMethodBean<T>
public class ProducerMethodBean<T>
Concrete implementation of the AbstractOwbBean.
It is defined as producer method component.
| Field Summary | |
|---|---|
protected Method |
creatorMethod
Creator method of the parent component |
protected Method |
disposalMethod
Disposal method |
| Fields inherited from class org.apache.webbeans.component.AbstractProducerBean |
|---|
ownerComponent |
| 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 | |
|---|---|
ProducerMethodBean(InjectionTargetBean<?> parent,
Class<T> returnType)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
checkNullInstance(Object instance)
Check null control. |
protected void |
checkScopeType()
Check passivation check. |
protected T |
createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Default producer method creation. |
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
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)
|
protected void |
disposeDefault(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Default dispose method used. |
Type[] |
getActualTypeArguments()
Gets actual type arguments. |
Method |
getCreatorMethod()
Gets the creator method. |
Method |
getDisposalMethod()
Gets the disposal method of the component. |
String |
getId()
get the unique Id of the bean. |
boolean |
isPassivationCapable()
True if passivation capable false otherwise. |
void |
setCreatorMethod(Method creatorMethod)
Sets the method. |
void |
setDisposalMethod(Method disposalMethod)
Sets the disposal method. |
String |
toString()
|
| Methods inherited from class org.apache.webbeans.component.AbstractProducerBean |
|---|
destroyBean, getInjectionPoints, getParent, getParentInstance, getParentInstanceFromContext, isPassivationCapable, validatePassivationDependencies |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Method creatorMethod
protected Method disposalMethod
| Constructor Detail |
|---|
public ProducerMethodBean(InjectionTargetBean<?> parent,
Class<T> returnType)
parent - parent beanreturnType - producer method return type| Method Detail |
|---|
public Method getCreatorMethod()
public void setCreatorMethod(Method creatorMethod)
creatorMethod - producer methodpublic Method getDisposalMethod()
public void setDisposalMethod(Method disposalMethod)
disposalMethod - disposal method of this producer method componentpublic String getId()
AbstractOwbBean
getId in interface OwbBean<T>getId in class AbstractOwbBean<T>public Type[] getActualTypeArguments()
protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createInstance in class AbstractProducerBean<T>creationalContext - the contextual instance shall be created in
protected T createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
creationalContext - creational context
protected void destroyInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
destroyInstance in class AbstractProducerBean<T>instance - instance of the bean that is being destroyedcreationalContext - the contextual instance has been created in
public void dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
dispose in interface IBeanHasParent<T>dispose in class AbstractProducerBean<T>
protected void disposeDefault(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
instance - bean instanceprotected void checkNullInstance(Object instance)
instance - bean instanceprotected void checkScopeType()
public boolean isPassivationCapable()
OwbBean
isPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public String toString()
AbstractOwbBean
toString in class AbstractOwbBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||