Package org.jboss.weld.resources
Class DefaultReflectionCache
- java.lang.Object
-
- org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService
-
- org.jboss.weld.resources.DefaultReflectionCache
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.BootstrapService,org.jboss.weld.bootstrap.api.Service,ReflectionCache
- Direct Known Subclasses:
HotspotReflectionCache
public class DefaultReflectionCache extends org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService implements ReflectionCache
-
-
Constructor Summary
Constructors Constructor Description DefaultReflectionCache(TypeStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupAfterBoot()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)protected Annotation[]internalGetAnnotations(AnnotatedElement element)protected Annotation[]internalGetDeclaredAnnotations(AnnotatedElement element)
-
-
-
Constructor Detail
-
DefaultReflectionCache
public DefaultReflectionCache(TypeStore store)
-
-
Method Detail
-
internalGetAnnotations
protected Annotation[] internalGetAnnotations(AnnotatedElement element)
-
internalGetDeclaredAnnotations
protected Annotation[] internalGetDeclaredAnnotations(AnnotatedElement element)
-
getAnnotations
public Annotation[] getAnnotations(AnnotatedElement element)
- Specified by:
getAnnotationsin interfaceReflectionCache
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations(AnnotatedElement element)
- Specified by:
getDeclaredAnnotationsin interfaceReflectionCache
-
getParameterAnnotations
public Annotation[] getParameterAnnotations(Constructor<?> constructor, int parameterPosition)
- Specified by:
getParameterAnnotationsin interfaceReflectionCache
-
getParameterAnnotations
public Annotation[] getParameterAnnotations(Method method, int parameterPosition)
- Specified by:
getParameterAnnotationsin interfaceReflectionCache
-
cleanupAfterBoot
public void cleanupAfterBoot()
- Specified by:
cleanupAfterBootin interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
getAnnotationSet
public Set<Annotation> getAnnotationSet(AnnotatedElement element)
- Specified by:
getAnnotationSetin interfaceReflectionCache
-
getDeclaredAnnotationSet
public Set<Annotation> getDeclaredAnnotationSet(AnnotatedElement element)
- Specified by:
getDeclaredAnnotationSetin interfaceReflectionCache
-
getParameterAnnotationSet
public Set<Annotation> getParameterAnnotationSet(BackedAnnotatedParameter<?> parameter)
- Specified by:
getParameterAnnotationSetin interfaceReflectionCache
-
getBackedAnnotatedTypeAnnotationSet
public Set<Annotation> getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
Description copied from interface:ReflectionCacheReturns 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.- Specified by:
getBackedAnnotatedTypeAnnotationSetin interfaceReflectionCache- Returns:
- the set of type-level annotations of a given type
-
-