org.apache.webbeans.util
Class WebBeansAnnotatedTypeUtil

java.lang.Object
  extended by org.apache.webbeans.util.WebBeansAnnotatedTypeUtil

public final class WebBeansAnnotatedTypeUtil
extends Object


Method Summary
static
<T> void
addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner, AnnotatedConstructor<T> constructor)
           
static
<T,X> void
addFieldInjectionPointMetaData(AbstractOwbBean<T> owner, AnnotatedField<X> annotField)
           
static
<T,X> void
addMethodInjectionPointMetaData(OwbBean<T> owner, AnnotatedMethod<X> method)
           
static
<X> void
checkManagedBeanCondition(AnnotatedType<X> type)
          Checks the implementation class for checking conditions.
static
<X> void
checkManagedWebBeansInterceptorConditions(AnnotatedType<X> type)
           
static
<X> void
checkObserverMethodConditions(AnnotatedMethod<X> annotatedMethod, Class<?> clazz)
           
static
<X> void
checkProducerMethodDisposal(AnnotatedMethod<X> annotatedMethod)
          CheckProducerMethodDisposal.
static
<X> void
checkProducerMethodForDeployment(AnnotatedMethod<X> annotatedMethod)
          Check producer method is ok for deployment.
static
<X> void
configureProducerSpecialization(AbstractOwbBean<X> bean, AnnotatedMethod<X> annotatedMethod)
           
static
<T> ManagedBean<T>
defineAbstractDecorator(AnnotatedType<T> type)
           
static
<T> void
defineDecorator(AnnotatedType<T> annotatedType)
          Define decorator bean.
static
<X> void
defineDisposalMethods(AbstractInjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<X> void
defineInjectedFields(AbstractInjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<X> void
defineInjectedMethods(AbstractInjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<T> void
defineInterceptor(AnnotatedType<T> annotatedType)
           
static
<T> ManagedBean<T>
defineManagedBean(AnnotatedType<T> type)
           
static
<X> Set<ObserverMethod<?>>
defineObserverMethods(AbstractInjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<X> Set<ProducerFieldBean<?>>
defineProducerFields(InjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<X> Set<ProducerMethodBean<?>>
defineProducerMethods(InjectionTargetBean<X> bean, AnnotatedType<X> annotatedType)
           
static
<T> AnnotatedConstructor<T>
getBeanConstructor(AnnotatedType<T> type)
           
static
<X> Method
getDisposalWithGivenAnnotatedMethod(AnnotatedType<X> annotatedType, Type beanType, Annotation[] qualifiers)
           
static
<T> Set<InjectionPoint>
getJavaEeComponentInstanceInjectionPoints(AnnotatedType<T> type)
          Gets injection points for the given javaee component annotated type.
static boolean isAnnotatedTypeDecorator(AnnotatedType<?> annotatedType)
          Return true if this annotated type represents a decorator.
static boolean isAnnotatedTypeDecoratorOrInterceptor(AnnotatedType<?> annotatedType)
          Return true if this annotated type represents a decorator.
static boolean isAnnotatedTypeInterceptor(AnnotatedType<?> annotatedType)
          Return true if this annotated type represents a decorator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBeanConstructor

public static <T> AnnotatedConstructor<T> getBeanConstructor(AnnotatedType<T> type)

addConstructorInjectionPointMetaData

public static <T> void addConstructorInjectionPointMetaData(AbstractOwbBean<T> owner,
                                                            AnnotatedConstructor<T> constructor)

addMethodInjectionPointMetaData

public static <T,X> void addMethodInjectionPointMetaData(OwbBean<T> owner,
                                                         AnnotatedMethod<X> method)

addFieldInjectionPointMetaData

public static <T,X> void addFieldInjectionPointMetaData(AbstractOwbBean<T> owner,
                                                        AnnotatedField<X> annotField)

defineObserverMethods

public static <X> Set<ObserverMethod<?>> defineObserverMethods(AbstractInjectionTargetBean<X> bean,
                                                               AnnotatedType<X> annotatedType)

defineDisposalMethods

public static <X> void defineDisposalMethods(AbstractInjectionTargetBean<X> bean,
                                             AnnotatedType<X> annotatedType)

defineInjectedMethods

public static <X> void defineInjectedMethods(AbstractInjectionTargetBean<X> bean,
                                             AnnotatedType<X> annotatedType)

defineInjectedFields

public static <X> void defineInjectedFields(AbstractInjectionTargetBean<X> bean,
                                            AnnotatedType<X> annotatedType)

defineProducerFields

public static <X> Set<ProducerFieldBean<?>> defineProducerFields(InjectionTargetBean<X> bean,
                                                                 AnnotatedType<X> annotatedType)

defineProducerMethods

public static <X> Set<ProducerMethodBean<?>> defineProducerMethods(InjectionTargetBean<X> bean,
                                                                   AnnotatedType<X> annotatedType)

checkProducerMethodForDeployment

public static <X> void checkProducerMethodForDeployment(AnnotatedMethod<X> annotatedMethod)
Check producer method is ok for deployment.

Parameters:
annotatedMethod - producer method

configureProducerSpecialization

public static <X> void configureProducerSpecialization(AbstractOwbBean<X> bean,
                                                       AnnotatedMethod<X> annotatedMethod)

checkProducerMethodDisposal

public static <X> void checkProducerMethodDisposal(AnnotatedMethod<X> annotatedMethod)
CheckProducerMethodDisposal.

Parameters:
annotatedMethod - disposal method

checkObserverMethodConditions

public static <X> void checkObserverMethodConditions(AnnotatedMethod<X> annotatedMethod,
                                                     Class<?> clazz)

checkManagedBeanCondition

public static <X> void checkManagedBeanCondition(AnnotatedType<X> type)
                                      throws WebBeansConfigurationException
Checks the implementation class for checking conditions.

Parameters:
type - implementation class
Throws:
WebBeansConfigurationException - if any configuration exception occurs

checkManagedWebBeansInterceptorConditions

public static <X> void checkManagedWebBeansInterceptorConditions(AnnotatedType<X> type)

defineAbstractDecorator

public static <T> ManagedBean<T> defineAbstractDecorator(AnnotatedType<T> type)

getJavaEeComponentInstanceInjectionPoints

public static <T> Set<InjectionPoint> getJavaEeComponentInstanceInjectionPoints(AnnotatedType<T> type)
                                                                     throws IllegalArgumentException
Gets injection points for the given javaee component annotated type.

Type Parameters:
T - component class type
Parameters:
type - annotated type for the class
Returns:
injection points of the java ee component class
Throws:
IllegalArgumentException - if any exception occurs

defineManagedBean

public static <T> ManagedBean<T> defineManagedBean(AnnotatedType<T> type)

isAnnotatedTypeDecorator

public static boolean isAnnotatedTypeDecorator(AnnotatedType<?> annotatedType)
Return true if this annotated type represents a decorator.

Parameters:
annotatedType - annotated type
Returns:
true if decorator

isAnnotatedTypeDecoratorOrInterceptor

public static boolean isAnnotatedTypeDecoratorOrInterceptor(AnnotatedType<?> annotatedType)
Return true if this annotated type represents a decorator.

Parameters:
annotatedType - annotated type
Returns:
true if decorator

isAnnotatedTypeInterceptor

public static boolean isAnnotatedTypeInterceptor(AnnotatedType<?> annotatedType)
Return true if this annotated type represents a decorator.

Parameters:
annotatedType - annotated type
Returns:
true if decorator

defineDecorator

public static <T> void defineDecorator(AnnotatedType<T> annotatedType)
Define decorator bean.

Type Parameters:
T - type info
Parameters:
annotatedType - decorator class

defineInterceptor

public static <T> void defineInterceptor(AnnotatedType<T> annotatedType)

getDisposalWithGivenAnnotatedMethod

public static <X> Method getDisposalWithGivenAnnotatedMethod(AnnotatedType<X> annotatedType,
                                                             Type beanType,
                                                             Annotation[] qualifiers)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.