|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.webbeans.manager.Bean<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 |
|---|
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type |
| Constructor Summary | |
|---|---|
ProducerMethodBean(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
Constructor |
|
ProducerMethodBean(java.lang.reflect.Method method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
checkProducerMethod()
Validates the producer method |
T |
create()
Creates an instance of the bean |
void |
destroy(T instance)
|
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 |
protected void |
init()
Initializes the bean and its metadata |
protected void |
initDisposalMethod()
Initializes the remove method |
protected void |
initInjectionPoints()
Initializes the injection points |
java.lang.String |
toDetailedString()
|
java.lang.String |
toString()
Gets a string representation |
| Methods inherited from class org.jboss.webbeans.bean.AbstractProducerBean |
|---|
checkProducerReturnType, checkReturnValue, getDeclaringBean, getDefaultDeploymentType, getReceiver, initApiTypes, initType |
| Methods inherited from class org.jboss.webbeans.bean.AbstractBean |
|---|
bindDecorators, bindInterceptors, checkDeploymentType, getBindingTypes, getDeclaredBeanType, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getSpecializedType, getType, getTypes, initBindingTypes, initDeploymentType, initName, initPrimitive, initScopeType, isAssignableFrom, isNullable, isPrimitive, isSerializable |
| Methods inherited from class javax.webbeans.manager.Bean |
|---|
getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProducerMethodBean(java.lang.reflect.Method method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
method - The producer methoddeclaringBean - The declaring bean instancemanager - The Web Beans manager
public ProducerMethodBean(AnnotatedMethod<T> method,
AbstractClassBean<?> declaringBean,
ManagerImpl manager)
method - The producer method abstractiondeclaringBean - The declaring beanmanager - The Web Beans manager| Method Detail |
|---|
public T create()
create in interface Contextual<T>create in class Bean<T>public void destroy(T instance)
destroy in interface Contextual<T>destroy in class Bean<T>protected void init()
init in class AbstractProducerBean<T,java.lang.reflect.Method>protected void initInjectionPoints()
initInjectionPoints in class AbstractBean<T,java.lang.reflect.Method>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 java.lang.String toDetailedString()
toDetailedString in class AbstractBean<T,java.lang.reflect.Method>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||