|
||||||||||
| 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.AbstractInjectionTargetBean<T>
org.apache.webbeans.component.ManagedBean<T>
org.apache.webbeans.component.xml.XMLManagedBean<T>
public class XMLManagedBean<T>
| Field Summary |
|---|
| Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean |
|---|
decorators, inheritedMetaData, interceptorStack |
| 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 | |
|---|---|
XMLManagedBean(Class<T> returnType)
Creates new XML defined webbeans component. |
|
| Method Summary | |
|---|---|
void |
addFieldInjectionPoint(Field field,
XMLInjectionPointModel model)
Adds new field injection point |
void |
addFieldValue(Field name,
Object value)
Add new field value. |
void |
addMethodInjectionPoint(Method method,
XMLInjectionPointModel model)
Adds new method injection point |
protected T |
createInstance(CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation type. |
Map<Field,Object> |
getFieldValues()
|
void |
injectFields(T instance,
CreationalContext<T> creationalContext)
Injects fields of the bean after constructing. |
protected void |
injectFieldValues(T instance)
|
void |
injectMethods(T instance,
CreationalContext<T> creationalContext)
Injects all Inject methods of the bean instance. |
void |
setInjectableConstructor(XMLInjectableConstructor<T> constructor)
Sets injection point for constructor. |
| Methods inherited from class org.apache.webbeans.component.ManagedBean |
|---|
createComponentInstance, getConstructor, isPassivationCapable, setConstructor, setIsAbstractDecorator |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.webbeans.component.OwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean |
| Methods inherited from interface javax.enterprise.inject.spi.Bean |
|---|
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable |
| Methods inherited from interface javax.enterprise.context.spi.Contextual |
|---|
create, destroy |
| Constructor Detail |
|---|
public XMLManagedBean(Class<T> returnType)
returnType - type of the webbeans component| Method Detail |
|---|
protected T createInstance(CreationalContext<T> creationalContext)
AbstractInjectionTargetBean
createInstance in class AbstractInjectionTargetBean<T>creationalContext - the contextual instance shall be created in
public void injectFields(T instance,
CreationalContext<T> creationalContext)
AbstractInjectionTargetBean
injectFields in interface InjectionTargetBean<T>injectFields in class AbstractInjectionTargetBean<T>instance - bean instancecreationalContext - creational contextprotected void injectFieldValues(T instance)
public void injectMethods(T instance,
CreationalContext<T> creationalContext)
AbstractInjectionTargetBeanInject methods of the bean instance.
injectMethods in interface InjectionTargetBean<T>injectMethods in class AbstractInjectionTargetBean<T>instance - bean instancecreationalContext - creational context instancepublic void setInjectableConstructor(XMLInjectableConstructor<T> constructor)
constructor - constructor injection point
public void addFieldInjectionPoint(Field field,
XMLInjectionPointModel model)
field - field injection pointmodel - injection point model
public void addMethodInjectionPoint(Method method,
XMLInjectionPointModel model)
method - method injection pointmodel - injection point model
public void addFieldValue(Field name,
Object value)
name - name of the fieldvalue - value of the fieldpublic Map<Field,Object> getFieldValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||