Package org.jboss.weld.resources
Interface ReflectionCache
-
- All Superinterfaces:
org.jboss.weld.bootstrap.api.Service
- All Known Implementing Classes:
DefaultReflectionCache
,HotspotReflectionCache
public interface ReflectionCache extends org.jboss.weld.bootstrap.api.Service
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ReflectionCache.AnnotationClass<T extends Annotation>
Represents cached metadata about an annotation class.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotation>
ReflectionCache.AnnotationClass<T>getAnnotationClass(Class<T> clazz)
Set<Annotation>
getAnnotations(AnnotatedElement element)
Set<Annotation>
getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
Returns the set of annotations for aBackedAnnotatedType
.Set<Annotation>
getDeclaredAnnotations(AnnotatedElement element)
-
-
-
Method Detail
-
getAnnotations
Set<Annotation> getAnnotations(AnnotatedElement element)
-
getDeclaredAnnotations
Set<Annotation> getDeclaredAnnotations(AnnotatedElement element)
-
getBackedAnnotatedTypeAnnotationSet
Set<Annotation> getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
Returns the set of annotations for aBackedAnnotatedType
. This are all annotations declared directly on theBackedAnnotatedType.getJavaClass()
and allInherited
annotations. In addition, scope annotation inheritance rules (as defined in section 4.1) are applied.- Parameters:
javaClass
-- Returns:
- the set of type-level annotations of a given type
-
getAnnotationClass
<T extends Annotation> ReflectionCache.AnnotationClass<T> getAnnotationClass(Class<T> clazz)
-
-