|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.annotation.AnnotationManager
public final class AnnotationManager
Manages annotation usage by classes in this application.
| Constructor Summary | |
|---|---|
AnnotationManager(WebBeansContext context)
|
|
| Method Summary | ||
|---|---|---|
void |
checkDecoratorResolverParams(Set<Type> apiTypes,
Annotation... qualifiers)
|
|
Annotation[] |
checkForNewQualifierForDeployment(Type type,
Class<?> clazz,
String name,
Annotation[] annotations)
Check conditions for the new binding. |
|
void |
checkInjectionPointForInjectInjectionPoint(Class<?> clazz)
JavaEE components can not inject InjectionPoint. |
|
boolean |
checkInjectionPointForInterceptorPassivation(Class<?> clazz)
Returns trur for serializable types. |
|
void |
checkInterceptorResolverParams(Annotation... interceptorBindings)
|
|
void |
checkQualifierConditions(Annotation... qualifierAnnots)
|
|
void |
checkQualifierConditions(Set<Annotation> qualifierAnnots)
This function obviously cannot check for duplicate annotations. |
|
void |
checkStereoTypeClass(Class<? extends Annotation> clazz)
Validates that given class obeys stereotype model defined by the specification. |
|
void |
checkStereoTypeClass(Class<? extends Annotation> clazz,
Annotation... annotations)
Validates that given class obeys stereotype model defined by the specification. |
|
boolean |
configuredProducerSpecializedName(AbstractOwbBean<?> component,
Method method,
Method superMethod)
Configures the name of the producer method for specializing the parent. |
|
|
getAnnotatedMethodFirstParameterQualifierWithGivenAnnotation(javax.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod,
Class<? extends Annotation> clazz)
|
|
Annotation[] |
getComponentStereoTypes(OwbBean<?> bean)
Returns bean stereotypes. |
|
|
getDisposalWithGivenAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
Type beanType,
Annotation[] qualifiers)
|
|
Annotation[] |
getInterceptorBindingMetaAnnotations(Annotation[] anns)
Collect the interceptor bindings from an array of annotations, including transitively defined interceptor bindings. |
|
Annotation[] |
getMethodFirstParameterQualifierWithGivenAnnotation(Method method,
Class<? extends Annotation> clazz)
Gets the method first found parameter qualifiers. |
|
Annotation[] |
getQualifierAnnotations(Annotation... annotations)
Gets the array of qualifier annotations on the given array. |
|
Annotation[] |
getRealizesGenericAnnotations(Class<?> clazz,
Annotation[] anns)
If the bean extends generic class via Realizes annotation, realized based producer methods, fields and observer methods qualifier is Qualifiers on the definitions Plus class qualifiers Minus generic class qualifiers |
|
Annotation[] |
getStereotypeMetaAnnotations(Annotation[] anns)
|
|
boolean |
hasInterceptorBindingMetaAnnotation(Annotation[] anns)
If any Annotations in the input is an interceptor binding annotation type then return true, false otherwise. |
|
boolean |
hasNamedOnStereoTypes(OwbBean<?> bean)
Returns true if name exists,false otherwise. |
|
boolean |
hasStereoTypeMetaAnnotation(Annotation[] anns)
|
|
boolean |
isComponentHasStereoType(OwbBean<?> component)
Returns true if array contains the StereoType meta annotation |
|
boolean |
isInterceptorBindingAnnotation(Class<? extends Annotation> clazz)
Returns true if the annotation is defined in xml or annotated with InterceptorBinding or an InterceptorBinding
registered via BeforeBeanDiscovery. |
|
boolean |
isQualifierAnnotation(Class<? extends Annotation> clazz)
Returns true if the annotation is defined in xml or annotated with Qualifier false otherwise. |
|
boolean |
isStereoTypeAnnotation(Class<? extends Annotation> clazz)
Returns true if the annotation is defined in xml or annotated with Stereotype false otherwise. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationManager(WebBeansContext context)
| Method Detail |
|---|
public boolean isInterceptorBindingAnnotation(Class<? extends Annotation> clazz)
InterceptorBinding or an InterceptorBinding
registered via BeforeBeanDiscovery.
False otherwise.
clazz - type of the annotation
InterceptorBinding, false otherwisepublic boolean hasInterceptorBindingMetaAnnotation(Annotation[] anns)
anns - array of Annotations to check
public Annotation[] getInterceptorBindingMetaAnnotations(Annotation[] anns)
anns - An array of annotations
public boolean isQualifierAnnotation(Class<? extends Annotation> clazz)
Qualifier false otherwise.
clazz - type of the annotation
Qualifier false otherwise
public <X> Annotation[] getAnnotatedMethodFirstParameterQualifierWithGivenAnnotation(javax.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod,
Class<? extends Annotation> clazz)
public Annotation[] getMethodFirstParameterQualifierWithGivenAnnotation(Method method,
Class<? extends Annotation> clazz)
method - methodclazz - checking annotation
public Annotation[] getQualifierAnnotations(Annotation... annotations)
annotations - annotation array
public Annotation[] getRealizesGenericAnnotations(Class<?> clazz,
Annotation[] anns)
clazz - realized definition classanns - binding annotations arraypublic void checkQualifierConditions(Annotation... qualifierAnnots)
public void checkQualifierConditions(Set<Annotation> qualifierAnnots)
qualifierAnnots - public boolean isStereoTypeAnnotation(Class<? extends Annotation> clazz)
Stereotype false otherwise.
clazz - type of the annotation
Stereotype false otherwisepublic boolean hasStereoTypeMetaAnnotation(Annotation[] anns)
public Annotation[] getStereotypeMetaAnnotations(Annotation[] anns)
public boolean isComponentHasStereoType(OwbBean<?> component)
public Annotation[] getComponentStereoTypes(OwbBean<?> bean)
bean - bean instance
public boolean hasNamedOnStereoTypes(OwbBean<?> bean)
bean - bean instance
public void checkStereoTypeClass(Class<? extends Annotation> clazz)
clazz - stereotype class
public void checkStereoTypeClass(Class<? extends Annotation> clazz,
Annotation... annotations)
clazz - stereotype classpublic void checkInterceptorResolverParams(Annotation... interceptorBindings)
public void checkDecoratorResolverParams(Set<Type> apiTypes,
Annotation... qualifiers)
public Annotation[] checkForNewQualifierForDeployment(Type type,
Class<?> clazz,
String name,
Annotation[] annotations)
annotations - annotations
WebBeansConfigurationException - if New plus any other binding annotation is set
public boolean configuredProducerSpecializedName(AbstractOwbBean<?> component,
Method method,
Method superMethod)
component - producer method componentmethod - specialized producer methodsuperMethod - overriden super producer method
public <X> Method getDisposalWithGivenAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
Type beanType,
Annotation[] qualifiers)
public void checkInjectionPointForInjectInjectionPoint(Class<?> clazz)
InjectionPoint.
clazz - javaee component class info
WebBeansConfigurationException - exception if condition is not appliedpublic boolean checkInjectionPointForInterceptorPassivation(Class<?> clazz)
clazz - class info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||