ClassFileServices
instead.@Deprecated public interface AnnotationDiscovery extends Service
This service allows an integrator to expose an annotation index for a deployment obtained from bytecode scanning. This service is optional. If provided, Weld will use this service to avoid expensive Java Reflection calls.
Modifier and Type | Method and Description |
---|---|
boolean |
containsAnnotation(Class<?> javaClass,
Class<? extends Annotation> annotation)
Deprecated.
Indicates whether the given class contains an annotation of the given annotation type.
|
boolean containsAnnotation(Class<?> javaClass, Class<? extends Annotation> annotation)
Indicates 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.
javaClass
- the given classannotation
- the given annotation typeCopyright © 2008-2015. All Rights Reserved.