|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.inject.manager.Bean<T>
org.jboss.webbeans.bean.RIBean<T>
org.jboss.webbeans.bean.AbstractBean<T,S>
org.jboss.webbeans.bean.AbstractProducerBean<T,java.lang.reflect.Method>
org.jboss.webbeans.bean.ProducerMethodBean<T>
T - public class ProducerMethodBean<T>
Represents a producer method bean
| Field Summary |
|---|
| Fields inherited from class org.jboss.webbeans.bean.AbstractProducerBean |
|---|
declaringBean |
| Fields inherited from class org.jboss.webbeans.bean.AbstractBean |
|---|
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types |
| Constructor Summary | |
|---|---|
protected |
ProducerMethodBean(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
|
| Method Summary | ||
|---|---|---|
protected void |
checkProducerMethod()
Validates the producer method |
|
protected AnnotatedMethod<T> |
getAnnotatedItem()
Gets the annotated item representing the method |
|
protected java.lang.String |
getDefaultName()
Returns the default name |
|
AnnotatedMethod<?> |
getDisposalMethod()
Returns the disposal method |
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
protected void |
init()
Initializes the bean and its metadata |
|
protected void |
initDisposalMethod()
Initializes the remove method |
|
protected void |
initInjectionPoints()
Initializes the injection points |
|
protected void |
initSpecialization()
|
|
boolean |
isSerializable()
|
|
static
|
of(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
Creates a producer method Web Bean |
|
static
|
of(java.lang.reflect.Method method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
|
|
protected void |
preCheckSpecialization()
|
|
protected T |
produceInstance(CreationalContext<T> creationalContext)
|
|
java.lang.String |
toString()
Gets a string representation |
|
| Methods inherited from class org.jboss.webbeans.bean.AbstractProducerBean |
|---|
checkProducerReturnType, checkReturnValue, create, destroy, equals, getDeclaredBeanType, getDeclaringBean, getDefaultDeploymentType, getReceiver, initDeploymentType, initScopeType, initSerializable, initType, initTypes |
| Methods inherited from class org.jboss.webbeans.bean.RIBean |
|---|
getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ProducerMethodBean(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
| Method Detail |
|---|
public static <T> ProducerMethodBean<T> of(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
method - The underlying method abstractiondeclaringBean - The declaring bean abstractionmanager - the current manager
public static <T> ProducerMethodBean<T> of(java.lang.reflect.Method method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
protected T produceInstance(CreationalContext<T> creationalContext)
produceInstance in class AbstractProducerBean<T,java.lang.reflect.Method>protected void init()
init in class AbstractProducerBean<T,java.lang.reflect.Method>protected void initInjectionPoints()
protected void checkProducerMethod()
protected void initDisposalMethod()
protected AnnotatedMethod<T> getAnnotatedItem()
getAnnotatedItem in class AbstractBean<T,java.lang.reflect.Method>protected java.lang.String getDefaultName()
getDefaultName in class AbstractBean<T,java.lang.reflect.Method>public AnnotatedMethod<?> getDisposalMethod()
public java.lang.String toString()
toString in class AbstractProducerBean<T,java.lang.reflect.Method>public boolean isSerializable()
isSerializable in class AbstractBean<T,java.lang.reflect.Method>public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,java.lang.reflect.Method>protected void preCheckSpecialization()
preCheckSpecialization in class AbstractBean<T,java.lang.reflect.Method>protected void initSpecialization()
initSpecialization in class AbstractBean<T,java.lang.reflect.Method>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||