|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.config.DefinitionUtil
public final class DefinitionUtil
Defines the web beans components common properties.
| Constructor Summary | |
|---|---|
DefinitionUtil(WebBeansContext webBeansContext)
|
|
| Method Summary | ||
|---|---|---|
|
addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
Constructor<T> constructor)
|
|
|
addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
Field field)
|
|
void |
addImplicitComponentForInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
|
|
|
addMethodInjectionPointMetaData(AbstractOwbBean<T> owner,
Method method)
|
|
|
createProducerBeanFromAnnotatedType(Class<X> returnType,
javax.enterprise.inject.spi.AnnotatedMethod<X> method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
|
|
createProducerComponent(Class<T> returnType,
Method method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
|
static
|
defineApiTypes(AbstractOwbBean<T> bean,
Class<T> clazz)
Configures the web bean api types. |
|
void |
defineBeanInterceptorStack(AbstractInjectionTargetBean<?> bean)
Configure bean instance interceptor stack. |
|
void |
defineDecoratorStack(AbstractInjectionTargetBean<?> bean)
Defines decorator stack of given bean. |
|
static void |
defineDefaultScopeType(OwbBean<?> component,
String exceptionMessage,
boolean allowLazyInit)
|
|
|
defineDisposalMethods(AbstractOwbBean<T> component)
|
|
|
defineDisposalMethods(AbstractOwbBean<T> component,
Class<?> clazz)
|
|
|
defineInjectedFields(AbstractInjectionTargetBean<T> component)
|
|
|
defineInjectedMethods(AbstractInjectionTargetBean<T> bean)
|
|
|
defineInternalInjectedFields(AbstractInjectionTargetBean<T> component,
Class<T> clazz,
boolean fromSuperClazz)
|
|
|
defineInternalInjectedFieldsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
|
|
|
defineInternalInjectedMethodsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
|
|
|
defineName(AbstractOwbBean<T> component,
Annotation[] anns,
String defaultName)
Configure web beans component name. |
|
|
defineObserverMethods(InjectionTargetBean<T> component,
Class<T> clazz)
|
|
Set<ProducerFieldBean<?>> |
defineProducerFields(InjectionTargetBean<?> component)
Defines the set of ProducerFieldBean components. |
|
Set<ProducerFieldBean<?>> |
defineProducerFields(InjectionTargetBean<?> component,
Class<?> returnType)
|
|
static
|
defineProducerMethodApiTypes(AbstractProducerBean<T> producerBean,
Type type,
Annotation[] annots)
Configures the producer method web bean api types. |
|
Set<ProducerMethodBean<?>> |
defineProducerMethods(AbstractInjectionTargetBean<?> component)
Defines the Bean producer methods. |
|
Set<ProducerMethodBean<?>> |
defineProducerMethods(AbstractInjectionTargetBean<?> component,
Class<?> clazz)
|
|
|
defineProducerMethods(InjectionTargetBean<X> bean,
javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
|
|
|
defineQualifiers(AbstractOwbBean<T> component,
Annotation[] annotations)
Configure web beans component qualifier. |
|
static
|
defineScopeType(AbstractOwbBean<T> component,
Annotation[] annotations,
String exceptionMessage,
boolean allowLazyInit)
Configure web beans component scope type. |
|
|
defineSerializable(AbstractOwbBean<T> component)
|
|
static
|
defineStereoTypes(OwbBean<?> component,
Annotation[] anns)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefinitionUtil(WebBeansContext webBeansContext)
| Method Detail |
|---|
public static <T> void defineApiTypes(AbstractOwbBean<T> bean,
Class<T> clazz)
T - generic class typebean - configuring web beans componentclazz - bean implementation class
public static <T> void defineProducerMethodApiTypes(AbstractProducerBean<T> producerBean,
Type type,
Annotation[] annots)
T - generic class typeproducerBean - configuring web beans componenttype - bean implementation class
public <T> void defineQualifiers(AbstractOwbBean<T> component,
Annotation[] annotations)
component - configuring web beans componentannotations - annotations
public static <T> void defineScopeType(AbstractOwbBean<T> component,
Annotation[] annotations,
String exceptionMessage,
boolean allowLazyInit)
T - generic class typecomponent - configuring web beans componentannotations - annotations
public static <T> void defineStereoTypes(OwbBean<?> component,
Annotation[] anns)
public static void defineDefaultScopeType(OwbBean<?> component,
String exceptionMessage,
boolean allowLazyInit)
public <T> void defineName(AbstractOwbBean<T> component,
Annotation[] anns,
String defaultName)
component - configuring web beans componentdefaultName - default name of the web beanpublic Set<ProducerFieldBean<?>> defineProducerFields(InjectionTargetBean<?> component)
ProducerFieldBean components.
component - producer field owner component
public Set<ProducerFieldBean<?>> defineProducerFields(InjectionTargetBean<?> component,
Class<?> returnType)
public Set<ProducerMethodBean<?>> defineProducerMethods(AbstractInjectionTargetBean<?> component)
Bean producer methods. Moreover, it configures the
producer methods with using the Produces annotations.
component -
WebBeansConfigurationException - if any exception occurs
public Set<ProducerMethodBean<?>> defineProducerMethods(AbstractInjectionTargetBean<?> component,
Class<?> clazz)
public <T> ProducerMethodBean<T> createProducerComponent(Class<T> returnType,
Method method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
public <T> void defineDisposalMethods(AbstractOwbBean<T> component)
public <T> void defineDisposalMethods(AbstractOwbBean<T> component,
Class<?> clazz)
public <T> void defineInjectedFields(AbstractInjectionTargetBean<T> component)
public <T> void defineInternalInjectedFieldsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
public <T> void defineInternalInjectedFields(AbstractInjectionTargetBean<T> component,
Class<T> clazz,
boolean fromSuperClazz)
public <T> void defineInjectedMethods(AbstractInjectionTargetBean<T> bean)
public <T> void defineInternalInjectedMethodsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
public void defineBeanInterceptorStack(AbstractInjectionTargetBean<?> bean)
bean - bean instancepublic void defineDecoratorStack(AbstractInjectionTargetBean<?> bean)
bean - injection target bean
public <T> Set<javax.enterprise.inject.spi.ObserverMethod<?>> defineObserverMethods(InjectionTargetBean<T> component,
Class<T> clazz)
public <T> void defineSerializable(AbstractOwbBean<T> component)
public <T> void addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
Field field)
public <T> void addMethodInjectionPointMetaData(AbstractOwbBean<T> owner,
Method method)
public <T> void addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
Constructor<T> constructor)
public void addImplicitComponentForInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
public <X> Set<ProducerMethodBean<?>> defineProducerMethods(InjectionTargetBean<X> bean,
javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
public <X> ProducerMethodBean<X> createProducerBeanFromAnnotatedType(Class<X> returnType,
javax.enterprise.inject.spi.AnnotatedMethod<X> method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||