public class SimpleAnnotationDiscovery extends Object implements AnnotationDiscovery
AnnotationDiscovery which uses Java Reflection. This is the fallback option if an annotation
index is not available.| Constructor and Description |
|---|
SimpleAnnotationDiscovery(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(Class<?> javaClass,
Class<? extends Annotation> requiredAnnotation)
Indicates whether the given class contains an annotation of the given annotation type.
|
public SimpleAnnotationDiscovery(ReflectionCache cache)
public boolean containsAnnotation(Class<?> javaClass, Class<? extends Annotation> requiredAnnotation)
AnnotationDiscoveryIndicates whether the given class contains an annotation of the given annotation type.
The process begins with enumerating a set of annotations which consists of:
ExtendedAnnotationDiscovery.getAnnotationsAnnotatedWith(Class))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 classThis is a per-deployment service.
containsAnnotation in interface AnnotationDiscoveryjavaClass - the given classrequiredAnnotation - the given annotation typeCopyright © 2013 Seam Framework. All Rights Reserved.