|
||||||||||
| 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.
| Method Summary | ||
|---|---|---|
static
|
addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
Constructor<T> constructor)
|
|
static
|
addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
Field field)
|
|
static void |
addImplicitComponentForInjectionPoint(InjectionPoint injectionPoint)
|
|
static
|
addMethodInjectionPointMetaData(AbstractOwbBean<T> owner,
Method method)
|
|
static
|
createProducerBeanFromAnnotatedType(Class<X> returnType,
AnnotatedMethod<X> method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
|
static
|
createProducerComponent(Class<T> returnType,
Method method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
|
static
|
defineApiTypes(AbstractOwbBean<T> bean,
Class<T> clazz)
Configures the web bean api types. |
|
static void |
defineBeanInterceptorStack(AbstractInjectionTargetBean<?> bean)
Configure bean instance interceptor stack. |
|
static void |
defineDecoratorStack(AbstractInjectionTargetBean<?> bean)
Defines decorator stack of given bean. |
|
static void |
defineDefaultScopeType(OwbBean<?> component,
String exceptionMessage)
|
|
static
|
defineDisposalMethods(AbstractOwbBean<T> component)
|
|
static
|
defineInjectedFields(AbstractInjectionTargetBean<T> component)
|
|
static
|
defineInjectedMethods(AbstractInjectionTargetBean<T> bean)
|
|
static
|
defineInternalInjectedFields(AbstractInjectionTargetBean<T> component,
Class<T> clazz,
boolean fromSuperClazz)
|
|
static
|
defineInternalInjectedFieldsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
|
|
static
|
defineInternalInjectedMethodsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
|
|
static
|
defineName(AbstractOwbBean<T> component,
Annotation[] anns,
String defaultName)
Configure web beans component name. |
|
static
|
defineObserverMethods(InjectionTargetBean<T> component,
Class<T> clazz)
|
|
static
|
defineProducerMethodApiTypes(AbstractProducerBean<T> producerBean,
Type type,
Annotation[] annots)
Configures the producer method web bean api types. |
|
static Set<ProducerMethodBean<?>> |
defineProducerMethods(AbstractInjectionTargetBean<?> component)
Defines the Bean producer methods. |
|
static
|
defineProducerMethods(InjectionTargetBean<X> bean,
AnnotatedType<X> annotatedType)
|
|
static Set<ProducerFieldBean<?>> |
defineProduerFields(InjectionTargetBean<?> component)
Defines the set of ProducerFieldBean components. |
|
static
|
defineQualifiers(AbstractOwbBean<T> component,
Annotation[] annotations)
Configure web beans component qualifier. |
|
static
|
defineScopeType(AbstractOwbBean<T> component,
Annotation[] annotations,
String exceptionMessage)
Configure web beans component scope type. |
|
static
|
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 |
| 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 static <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)
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)
public static <T> void defineName(AbstractOwbBean<T> component,
Annotation[] anns,
String defaultName)
component - configuring web beans componentdefaultName - default name of the web beanpublic static Set<ProducerFieldBean<?>> defineProduerFields(InjectionTargetBean<?> component)
ProducerFieldBean components.
component - producer field owner component
public static 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 static <T> ProducerMethodBean<T> createProducerComponent(Class<T> returnType,
Method method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
public static <T> void defineDisposalMethods(AbstractOwbBean<T> component)
public static <T> void defineInjectedFields(AbstractInjectionTargetBean<T> component)
public static <T> void defineInternalInjectedFieldsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
public static <T> void defineInternalInjectedFields(AbstractInjectionTargetBean<T> component,
Class<T> clazz,
boolean fromSuperClazz)
public static <T> void defineInjectedMethods(AbstractInjectionTargetBean<T> bean)
public static <T> void defineInternalInjectedMethodsRecursively(AbstractInjectionTargetBean<T> component,
Class<T> clazz)
public static void defineBeanInterceptorStack(AbstractInjectionTargetBean<?> bean)
bean - bean instancepublic static void defineDecoratorStack(AbstractInjectionTargetBean<?> bean)
bean - injection target bean
public static <T> Set<ObserverMethod<?>> defineObserverMethods(InjectionTargetBean<T> component,
Class<T> clazz)
public static <T> void defineSerializable(AbstractOwbBean<T> component)
public static <T> void addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
Field field)
public static <T> void addMethodInjectionPointMetaData(AbstractOwbBean<T> owner,
Method method)
public static <T> void addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
Constructor<T> constructor)
public static void addImplicitComponentForInjectionPoint(InjectionPoint injectionPoint)
public static <X> Set<ProducerMethodBean<?>> defineProducerMethods(InjectionTargetBean<X> bean,
AnnotatedType<X> annotatedType)
public static <X> ProducerMethodBean<X> createProducerBeanFromAnnotatedType(Class<X> returnType,
AnnotatedMethod<X> method,
InjectionTargetBean<?> parent,
boolean isSpecializes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||