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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Annotation[]getAnnotations(AnnotatedElement element)Set<Annotation>getAnnotationSet(AnnotatedElement element)Set<Annotation>getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)Returns the set of annotations for aBackedAnnotatedType.Annotation[]getDeclaredAnnotations(AnnotatedElement element)Set<Annotation>getDeclaredAnnotationSet(AnnotatedElement element)Annotation[]getParameterAnnotations(Constructor<?> constructor, int parameterPosition)Annotation[]getParameterAnnotations(Method method, int parameterPosition)Set<Annotation>getParameterAnnotationSet(BackedAnnotatedParameter<?> parameter)
-
-
-
Method Detail
-
getAnnotations
Annotation[] getAnnotations(AnnotatedElement element)
-
getAnnotationSet
Set<Annotation> getAnnotationSet(AnnotatedElement element)
-
getDeclaredAnnotations
Annotation[] getDeclaredAnnotations(AnnotatedElement element)
-
getDeclaredAnnotationSet
Set<Annotation> getDeclaredAnnotationSet(AnnotatedElement element)
-
getParameterAnnotations
Annotation[] getParameterAnnotations(Constructor<?> constructor, int parameterPosition)
-
getParameterAnnotations
Annotation[] getParameterAnnotations(Method method, int parameterPosition)
-
getParameterAnnotationSet
Set<Annotation> getParameterAnnotationSet(BackedAnnotatedParameter<?> parameter)
-
getBackedAnnotatedTypeAnnotationSet
Set<Annotation> getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
Returns the set of annotations for aBackedAnnotatedType. This are all annotations declared directly on theBackedAnnotatedType.getJavaClass()and allInheritedannotations. 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
-
-