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 -
Method Summary
Modifier and TypeMethodDescriptionvoid<T extends Annotation>
ReflectionCache.AnnotationClass<T>getAnnotationClass(Class<T> clazz) getAnnotations(AnnotatedElement element) getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass) Returns the set of annotations for aBackedAnnotatedType.getDeclaredAnnotations(AnnotatedElement element) protected Annotation[]internalGetAnnotations(AnnotatedElement element) protected Annotation[]Methods inherited from class org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService
cleanupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.weld.bootstrap.api.Service
cleanup
-
Constructor Details
-
DefaultReflectionCache
-
-
Method Details
-
internalGetAnnotations
-
internalGetDeclaredAnnotations
-
cleanupAfterBoot
public void cleanupAfterBoot()- Specified by:
cleanupAfterBootin interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
getAnnotations
- Specified by:
getAnnotationsin interfaceReflectionCache
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceReflectionCache
-
getBackedAnnotatedTypeAnnotationSet
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
- Specified by:
getAnnotationClassin interfaceReflectionCache
-