|
||||||||||
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 extends java.lang.reflect.Member>
The implicit producer bean
Field Summary | |
---|---|
protected AbstractClassBean<?> |
declaringBean
|
Fields inherited from class org.jboss.webbeans.bean.AbstractBean |
---|
_serializable, bindings, 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)
Destroys an instance of the contexual type |
protected abstract AnnotatedMember<T,S> |
getAnnotatedItem()
Returns the annotated time the bean represents |
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 |
initDeploymentType()
Initializes the deployment types |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
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 |
---|
createId, equals, getId, getManager, hashCode |
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 managerMethod Detail |
---|
protected abstract AnnotatedMember<T,S> getAnnotatedItem()
AbstractBean
getAnnotatedItem
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
getDefaultDeploymentType
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected void initTypes()
initTypes
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected void initType()
protected java.lang.reflect.Type getDeclaredBeanType()
public AbstractClassBean<?> getDeclaringBean()
protected void checkProducerReturnType()
public void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected void checkReturnValue(T instance)
instance
- The instance to validateprotected void initScopeType()
AbstractBean
initScopeType
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected void initDeploymentType()
AbstractBean
initDeploymentType
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected void initSerializable()
initSerializable
in class AbstractBean<T,S extends java.lang.reflect.Member>
protected java.lang.Object getReceiver(CreationalContext<?> creationalContext)
public T create(CreationalContext<T> creationalContext)
creationalContext
- the creational context in which incompletely initialized
contexts may be placed
public void destroy(T instance)
Contextual
instance
- the insance to destroyprotected abstract T produceInstance(CreationalContext<T> creationalContext)
public java.lang.String toString()
toString
in class AbstractBean<T,S extends java.lang.reflect.Member>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |