|
||||||||||
| 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(java.util.Set<java.lang.reflect.Type> apiTypes,
java.lang.annotation.Annotation... qualifiers)
|
|
java.lang.annotation.Annotation[] |
checkForNewQualifierForDeployment(java.lang.reflect.Type type,
java.lang.Class<?> clazz,
java.lang.String name,
java.lang.annotation.Annotation[] annotations)
Check conditions for the new binding. |
|
void |
checkInjectionPointForInjectInjectionPoint(java.lang.Class<?> clazz)
JavaEE components can not inject InjectionPoint. |
|
boolean |
checkInjectionPointForInterceptorPassivation(java.lang.Class<?> clazz)
Returns trur for serializable types. |
|
void |
checkInterceptorResolverParams(java.lang.annotation.Annotation... interceptorBindings)
|
|
void |
checkQualifierConditions(java.lang.annotation.Annotation... qualifierAnnots)
|
|
void |
checkQualifierConditions(java.util.Set<java.lang.annotation.Annotation> qualifierAnnots)
This function obviously cannot check for duplicate annotations. |
|
void |
checkStereoTypeClass(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Validates that given class obeys stereotype model defined by the specification. |
|
void |
checkStereoTypeClass(java.lang.Class<? extends java.lang.annotation.Annotation> clazz,
java.lang.annotation.Annotation... annotations)
Validates that given class obeys stereotype model defined by the specification. |
|
boolean |
configuredProducerSpecializedName(AbstractOwbBean<?> component,
java.lang.reflect.Method method,
java.lang.reflect.Method superMethod)
Configures the name of the producer method for specializing the parent. |
|
|
getAnnotatedMethodFirstParameterQualifierWithGivenAnnotation(javax.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
|
|
java.lang.annotation.Annotation[] |
getComponentStereoTypes(OwbBean<?> bean)
Returns bean stereotypes. |
|
|
getDisposalWithGivenAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
java.lang.reflect.Type beanType,
java.lang.annotation.Annotation[] qualifiers)
|
|
java.lang.annotation.Annotation[] |
getInterceptorBindingMetaAnnotations(java.lang.annotation.Annotation[] anns)
Collect the interceptor bindings from an array of annotations, including transitively defined interceptor bindings. |
|
java.lang.annotation.Annotation[] |
getMethodFirstParameterQualifierWithGivenAnnotation(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Gets the method first found parameter qualifiers. |
|
java.lang.annotation.Annotation[] |
getQualifierAnnotations(java.lang.annotation.Annotation... annotations)
Gets the array of qualifier annotations on the given array. |
|
java.lang.annotation.Annotation[] |
getRealizesGenericAnnotations(java.lang.Class<?> clazz,
java.lang.annotation.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 |
|
java.lang.annotation.Annotation[] |
getStereotypeMetaAnnotations(java.lang.annotation.Annotation[] anns)
|
|
boolean |
hasInterceptorBindingMetaAnnotation(java.lang.annotation.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(java.lang.annotation.Annotation[] anns)
|
|
boolean |
isComponentHasStereoType(OwbBean<?> component)
Returns true if array contains the StereoType meta annotation |
|
boolean |
isInterceptorBindingAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Returns true if the annotation is defined in xml or annotated with InterceptorBinding false otherwise. |
|
boolean |
isQualifierAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Returns true if the annotation is defined in xml or annotated with Qualifier false otherwise. |
|
boolean |
isStereoTypeAnnotation(java.lang.Class<? extends java.lang.annotation.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(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
InterceptorBinding false otherwise.
clazz - type of the annotation
InterceptorBinding false otherwisepublic boolean hasInterceptorBindingMetaAnnotation(java.lang.annotation.Annotation[] anns)
anns - array of Annotations to check
public java.lang.annotation.Annotation[] getInterceptorBindingMetaAnnotations(java.lang.annotation.Annotation[] anns)
anns - An array of annotations
public boolean isQualifierAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Qualifier false otherwise.
clazz - type of the annotation
Qualifier false otherwise
public <X> java.lang.annotation.Annotation[] getAnnotatedMethodFirstParameterQualifierWithGivenAnnotation(javax.enterprise.inject.spi.AnnotatedMethod<X> annotatedMethod,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
public java.lang.annotation.Annotation[] getMethodFirstParameterQualifierWithGivenAnnotation(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
method - methodclazz - checking annotation
public java.lang.annotation.Annotation[] getQualifierAnnotations(java.lang.annotation.Annotation... annotations)
annotations - annotation array
public java.lang.annotation.Annotation[] getRealizesGenericAnnotations(java.lang.Class<?> clazz,
java.lang.annotation.Annotation[] anns)
clazz - realized definition classanns - binding annotations arraypublic void checkQualifierConditions(java.lang.annotation.Annotation... qualifierAnnots)
public void checkQualifierConditions(java.util.Set<java.lang.annotation.Annotation> qualifierAnnots)
qualifierAnnots - public boolean isStereoTypeAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Stereotype false otherwise.
clazz - type of the annotation
Stereotype false otherwisepublic boolean hasStereoTypeMetaAnnotation(java.lang.annotation.Annotation[] anns)
public java.lang.annotation.Annotation[] getStereotypeMetaAnnotations(java.lang.annotation.Annotation[] anns)
public boolean isComponentHasStereoType(OwbBean<?> component)
public java.lang.annotation.Annotation[] getComponentStereoTypes(OwbBean<?> bean)
bean - bean instance
public boolean hasNamedOnStereoTypes(OwbBean<?> bean)
bean - bean instance
public void checkStereoTypeClass(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
clazz - stereotype class
public void checkStereoTypeClass(java.lang.Class<? extends java.lang.annotation.Annotation> clazz,
java.lang.annotation.Annotation... annotations)
clazz - stereotype classpublic void checkInterceptorResolverParams(java.lang.annotation.Annotation... interceptorBindings)
public void checkDecoratorResolverParams(java.util.Set<java.lang.reflect.Type> apiTypes,
java.lang.annotation.Annotation... qualifiers)
public java.lang.annotation.Annotation[] checkForNewQualifierForDeployment(java.lang.reflect.Type type,
java.lang.Class<?> clazz,
java.lang.String name,
java.lang.annotation.Annotation[] annotations)
annotations - annotations
WebBeansConfigurationException - if New plus any other binding annotation is set
public boolean configuredProducerSpecializedName(AbstractOwbBean<?> component,
java.lang.reflect.Method method,
java.lang.reflect.Method superMethod)
component - producer method componentmethod - specialized producer methodsuperMethod - overriden super producer method
public <X> java.lang.reflect.Method getDisposalWithGivenAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
java.lang.reflect.Type beanType,
java.lang.annotation.Annotation[] qualifiers)
public void checkInjectionPointForInjectInjectionPoint(java.lang.Class<?> clazz)
InjectionPoint.
clazz - javaee component class info
WebBeansConfigurationException - exception if condition is not appliedpublic boolean checkInjectionPointForInterceptorPassivation(java.lang.Class<?> clazz)
clazz - class info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||