|
||||||||||
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, bindings, 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 |
|
void |
destroy(T instance)
Destroys an instance of the contexual type |
|
AnnotatedMethod<T> |
getAnnotatedItem()
Gets the annotated item representing the method |
|
protected java.lang.String |
getDefaultName()
Returns the default name |
|
DisposalMethodBean<?> |
getDisposalMethod()
Returns the disposal method |
|
java.lang.String |
getId()
|
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
protected void |
initDisposalMethod(BeanDeployerEnvironment environment)
Initializes the remove method |
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected void |
initInjectionPoints()
Initializes the injection points |
|
static
|
of(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
Creates a producer method Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
|
protected T |
produceInstance(CreationalContext<T> creationalContext)
|
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
java.lang.String |
toString()
Gets a string representation |
Methods inherited from class org.jboss.webbeans.bean.AbstractProducerBean |
---|
checkProducerReturnType, checkReturnValue, create, getDeclaredBeanType, getDeclaringBean, getDefaultDeploymentType, getReceiver, initDeploymentType, initScopeType, initSerializable, initType, initTypes |
Methods inherited from class org.jboss.webbeans.bean.AbstractBean |
---|
checkDeploymentType, checkRequiredTypesImplemented, getBindings, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getType, getTypes, initBindings, initDefaultBindings, initDeploymentTypeFromStereotype, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, isAssignableFrom, isDependent, isInitialized, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing, postSpecialize |
Methods inherited from class org.jboss.webbeans.bean.RIBean |
---|
createId, equals, getManager, hashCode |
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
protected T produceInstance(CreationalContext<T> creationalContext)
produceInstance
in class AbstractProducerBean<T,java.lang.reflect.Method>
public void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractProducerBean<T,java.lang.reflect.Method>
protected void initInjectionPoints()
protected void checkProducerMethod()
protected void initDisposalMethod(BeanDeployerEnvironment environment)
public void destroy(T instance)
Contextual
destroy
in interface Contextual<T>
destroy
in class AbstractProducerBean<T,java.lang.reflect.Method>
instance
- the insance to destroypublic AnnotatedMethod<T> getAnnotatedItem()
getAnnotatedItem
in class AbstractProducerBean<T,java.lang.reflect.Method>
protected java.lang.String getDefaultName()
getDefaultName
in class AbstractBean<T,java.lang.reflect.Method>
public DisposalMethodBean<?> getDisposalMethod()
public java.lang.String toString()
toString
in class AbstractProducerBean<T,java.lang.reflect.Method>
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,java.lang.reflect.Method>
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize
in class AbstractBean<T,java.lang.reflect.Method>
protected void specialize(BeanDeployerEnvironment environment)
specialize
in class AbstractBean<T,java.lang.reflect.Method>
public java.lang.String getId()
getId
in class RIBean<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |