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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.weld.resources.ReflectionCache
ReflectionCache.AnnotationClass<T extends Annotation>
-
-
Constructor Summary
Constructors Constructor Description DefaultReflectionCache(TypeStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupAfterBoot()<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)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)
-
cleanupAfterBoot
public void cleanupAfterBoot()
- Specified by:
cleanupAfterBootin interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
getAnnotations
public Set<Annotation> getAnnotations(AnnotatedElement element)
- Specified by:
getAnnotationsin interfaceReflectionCache
-
getDeclaredAnnotations
public Set<Annotation> getDeclaredAnnotations(AnnotatedElement element)
- Specified by:
getDeclaredAnnotationsin 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
-
getAnnotationClass
public <T extends Annotation> ReflectionCache.AnnotationClass<T> getAnnotationClass(Class<T> clazz)
- Specified by:
getAnnotationClassin interfaceReflectionCache
-
-