|
||||||||||
| 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,S>
T - S - public abstract class AbstractProducerBean<T,S>
The implicit producer bean
| Field Summary | |
|---|---|
protected AbstractClassBean<?> |
declaringBean
|
| Fields inherited from class org.jboss.webbeans.bean.AbstractBean |
|---|
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types |
| Constructor Summary | |
|---|---|
AbstractProducerBean(AbstractClassBean<?> declaringBean,
ManagerImpl manager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
checkProducerReturnType()
Validates the producer method |
protected void |
checkReturnValue(T instance)
Validates the return value |
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean |
void |
destroy(T instance)
|
boolean |
equals(java.lang.Object other)
|
protected java.lang.reflect.Type |
getDeclaredBeanType()
Gets the declared bean type |
AbstractClassBean<?> |
getDeclaringBean()
Returns the declaring bean |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
getDefaultDeploymentType()
Gets the deployment types |
protected java.lang.Object |
getReceiver(CreationalContext<?> creationalContext)
Gets the receiver of the product |
protected void |
init()
Initializes the bean and its metadata |
protected void |
initDeploymentType()
Initializes the deployment types |
protected void |
initScopeType()
Initializes the scope type |
protected void |
initSerializable()
|
protected void |
initType()
Initializes the type |
protected void |
initTypes()
Initializes the API types |
protected abstract T |
produceInstance(CreationalContext<T> creationalContext)
|
java.lang.String |
toString()
Gets a string representation |
| 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 |
| Field Detail |
|---|
protected AbstractClassBean<?> declaringBean
| Constructor Detail |
|---|
public AbstractProducerBean(AbstractClassBean<?> declaringBean,
ManagerImpl manager)
declaringBean - The declaring beanmanager - The Web Beans manager| Method Detail |
|---|
protected java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
getDefaultDeploymentType in class AbstractBean<T,S>protected void initTypes()
initTypes in class AbstractBean<T,S>protected void initType()
initType in class AbstractBean<T,S>protected java.lang.reflect.Type getDeclaredBeanType()
public AbstractClassBean<?> getDeclaringBean()
protected void checkProducerReturnType()
protected void init()
init in class AbstractBean<T,S>protected void checkReturnValue(T instance)
instance - The instance to validateprotected void initScopeType()
AbstractBean
initScopeType in class AbstractBean<T,S>protected void initDeploymentType()
AbstractBean
initDeploymentType in class AbstractBean<T,S>protected void initSerializable()
initSerializable in class AbstractBean<T,S>protected java.lang.Object getReceiver(CreationalContext<?> creationalContext)
public T create(CreationalContext<T> creationalContext)
public void destroy(T instance)
protected abstract T produceInstance(CreationalContext<T> creationalContext)
public java.lang.String toString()
toString in class AbstractBean<T,S>public boolean equals(java.lang.Object other)
equals in class AbstractBean<T,S>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||