public final class DefinitionUtil extends Object
| Constructor and Description |
|---|
DefinitionUtil(WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
Constructor<T> constructor) |
<T> void |
addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
Field field) |
void |
addImplicitComponentForInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint) |
<T> void |
addMethodInjectionPointMetaData(AbstractOwbBean<T> owner,
Method method) |
<X> ProducerMethodBean<X> |
createProducerBeanFromAnnotatedType(Class<X> returnType,
javax.enterprise.inject.spi.AnnotatedMethod<X> method,
InjectionTargetBean<?> parent,
boolean isSpecializes) |
<T> ProducerMethodBean<T> |
createProducerComponent(Class<T> returnType,
Method method,
InjectionTargetBean<?> parent,
boolean isSpecializes) |
static <T> void |
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.
|
void |
defineDefaultScopeType(OwbBean<?> component,
String exceptionMessage,
boolean allowLazyInit) |
<T> void |
defineDisposalMethods(AbstractOwbBean<T> component) |
<T> void |
defineDisposalMethods(AbstractOwbBean<T> component,
Class<?> clazz) |
<T> void |
defineInjectedFields(AbstractInjectionTargetBean<T> component) |
<T> void |
defineInjectedMethods(AbstractInjectionTargetBean<T> bean) |
<T> void |
defineInternalInjectedFields(AbstractInjectionTargetBean<T> component,
Class<T> clazz,
boolean fromSuperClazz) |
<T> void |
defineInternalInjectedFieldsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz) |
<T> void |
defineInternalInjectedMethodsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz) |
<T> void |
defineName(AbstractOwbBean<T> component,
Annotation[] anns,
String defaultName)
Configure web beans component name.
|
<T> Set<javax.enterprise.inject.spi.ObserverMethod<?>> |
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 <T> void |
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) |
<X> Set<ProducerMethodBean<?>> |
defineProducerMethods(InjectionTargetBean<X> bean,
javax.enterprise.inject.spi.AnnotatedType<X> annotatedType) |
<T> void |
defineQualifiers(AbstractOwbBean<T> component,
Annotation[] annotations)
Configure web beans component qualifier.
|
<T> void |
defineScopeType(AbstractOwbBean<T> component,
Annotation[] annotations,
String exceptionMessage,
boolean allowLazyInit)
Configure web beans component scope type.
|
<T> void |
defineSerializable(AbstractOwbBean<T> component) |
<T> void |
defineStereoTypes(OwbBean<?> component,
Annotation[] anns) |
public DefinitionUtil(WebBeansContext webBeansContext)
public static <T> void defineApiTypes(AbstractOwbBean<T> bean, Class<T> clazz)
T - generic class typebean - configuring web beans componentclazz - bean implementation classpublic static <T> void defineProducerMethodApiTypes(AbstractProducerBean<T> producerBean, Type type, Annotation[] annots)
T - generic class typeproducerBean - configuring web beans componenttype - bean implementation classpublic <T> void defineQualifiers(AbstractOwbBean<T> component, Annotation[] annotations)
component - configuring web beans componentannotations - annotationspublic <T> void defineScopeType(AbstractOwbBean<T> component, Annotation[] annotations, String exceptionMessage, boolean allowLazyInit)
T - generic class typecomponent - configuring web beans componentannotations - annotationspublic <T> void defineStereoTypes(OwbBean<?> component, Annotation[] anns)
public 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 componentpublic 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 occurspublic 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 beanpublic <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)
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.