|
||||||||||
| 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 |
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
enabled, isAlternative, logger, passivatingId, specializedBean, webBeansContext, webBeansType |
| Constructor Summary | |
|---|---|
ProducerMethodBean(InjectionTargetBean<P> ownerComponent,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
Method |
getCreatorMethod()
Gets the creator method. |
String |
getId()
get the unique Id of the bean. |
boolean |
isPassivationCapable()
True if passivation capable false otherwise. |
void |
setCreatorMethod(Method creatorMethod)
Sets the 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, equals, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isSpecializedBean, providedId, 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.inject.spi.Bean |
|---|
isNullable |
| Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes |
|---|
getName, getQualifiers, getScope, getStereotypes, getTypes |
| Field Detail |
|---|
protected Method creatorMethod
| Constructor Detail |
|---|
public ProducerMethodBean(InjectionTargetBean<P> ownerComponent,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
ownerComponent - parent beanreturnType - producer method return type| Method Detail |
|---|
public Method getCreatorMethod()
public void setCreatorMethod(Method creatorMethod)
creatorMethod - producer methodpublic String getId()
AbstractOwbBean
getId in interface javax.enterprise.inject.spi.PassivationCapablegetId in interface OwbBean<T>getId in class AbstractOwbBean<T>public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBean
create in interface javax.enterprise.context.spi.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 | |||||||||