|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.component.AbstractProducerBean<T>
org.apache.webbeans.component.ProducerFieldBean<T>
T - Type of the field declerationpublic class ProducerFieldBean<T>
Defines the producer field component implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.webbeans.component.AbstractProducerBean |
|---|
ownerComponent |
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
| Constructor Summary | |
|---|---|
ProducerFieldBean(InjectionTargetBean<?> ownerComponent,
Class<T> returnType)
Defines the new producer field component. |
|
| Method Summary | |
|---|---|
protected void |
checkNullInstance(Object instance)
Check null instance. |
protected void |
checkScopeType()
Check scope type passivation controls. |
protected T |
createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Default producer method creation. |
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
Type[] |
getActualTypeArguments()
Returns actual type arguments. |
Field |
getCreatorField()
Gets creator field. |
String |
getId()
get the unique Id of the bean. |
boolean |
isPassivationCapable()
True if passivation capable false otherwise. |
void |
setProducerField(Field field)
Set producer field. |
String |
toString()
|
| Methods inherited from class org.apache.webbeans.component.AbstractProducerBean |
|---|
destroyBean, destroyInstance, dispose, getInjectionPoints, getParent, getParentInstance, getParentInstanceFromContext, isPassivationCapable, validatePassivationDependencies |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.webbeans.component.IBeanHasParent |
|---|
dispose, getParent |
| Constructor Detail |
|---|
public ProducerFieldBean(InjectionTargetBean<?> ownerComponent,
Class<T> returnType)
returnType - type of the field decleration| Method Detail |
|---|
protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createInstance in class AbstractProducerBean<T>creationalContext - the contextual instance shall be created in
protected T createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
creationalContext - creational context
public Field getCreatorField()
public Type[] getActualTypeArguments()
public void setProducerField(Field field)
field - producer fieldprotected void checkNullInstance(Object instance)
instance - bean instanceprotected void checkScopeType()
public boolean isPassivationCapable()
OwbBean
isPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public String getId()
AbstractOwbBean
getId in interface OwbBean<T>getId in class AbstractOwbBean<T>public String toString()
toString in class AbstractOwbBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||