public class RequiredAnnotationDiscovery extends java.lang.Object implements Service
ReflectionCache capable of determining whether a given class
has a given annotation or not, as defined by the CDI 1.1 specification (11.5.6).| Constructor and Description |
|---|
RequiredAnnotationDiscovery(ReflectionCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
boolean |
containsAnnotation(BackedAnnotatedType<?> annotatedType,
java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation)
Indicates whether the given class contains an annotation of the given annotation type.
|
public RequiredAnnotationDiscovery(ReflectionCache cache)
public boolean containsAnnotation(BackedAnnotatedType<?> annotatedType, java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation)
Indicates whether the given class contains an annotation of the given annotation type.
The set is referred to as M hereafter
The given class is said to contain the given annotation if any of these applies:
Inherited, is present on a direct or
indirect superclass of the given classjavaClass - the given classannotation - the given annotation typeCopyright © 2015. All Rights Reserved.