|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.component.BeanAttributesImpl<T>
org.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.AbstractOwbBean |
|---|
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType |
| Constructor Summary | |
|---|---|
ProducerMethodBean(InjectionTargetBean<P> ownerComponent,
BeanAttributesImpl<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
T |
create(CreationalContext<T> creationalContext)
|
Method |
getCreatorMethod()
Gets the creator method. |
Method |
getDisposalMethod()
|
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. |
| Methods inherited from class org.apache.webbeans.component.AbstractProducerBean |
|---|
checkNullInstance, checkScopeType, dispose, getProducer, getReturnType, isPassivationCapable |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
destroy, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toString |
| Methods inherited from class org.apache.webbeans.component.BeanAttributesImpl |
|---|
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.inject.spi.Bean |
|---|
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable |
| Field Detail |
|---|
protected Method creatorMethod
protected Method disposalMethod
| Constructor Detail |
|---|
public ProducerMethodBean(InjectionTargetBean<P> ownerComponent,
BeanAttributesImpl<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
ownerComponent - parent beanreturnType - producer method return type| Method Detail |
|---|
public Method getCreatorMethod()
public Method getDisposalMethod()
public void setCreatorMethod(Method creatorMethod)
creatorMethod - producer methodpublic void setDisposalMethod(Method disposalMethod)
disposalMethod - disposal method of this producer method componentpublic String getId()
AbstractOwbBean
getId in interface PassivationCapablegetId in interface OwbBean<T>getId in class AbstractOwbBean<T>public T create(CreationalContext<T> creationalContext)
AbstractOwbBean
create in interface Contextual<T>create in class AbstractOwbBean<T>public boolean isPassivationCapable()
OwbBean
isPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||