public class DefaultReflectionCache extends AbstractBootstrapService implements ReflectionCache
ReflectionCache.AnnotationClass<T extends java.lang.annotation.Annotation>| Constructor and Description |
|---|
DefaultReflectionCache(TypeStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupAfterBoot()
Called by Weld once it finishes initialization and before it starts serving requests.
|
<T extends java.lang.annotation.Annotation> |
getAnnotationClass(java.lang.Class<T> clazz) |
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations(java.lang.reflect.AnnotatedElement element) |
java.util.Set<java.lang.annotation.Annotation> |
getBackedAnnotatedTypeAnnotationSet(java.lang.Class<?> javaClass)
Returns the set of annotations for a
BackedAnnotatedType. |
java.util.Set<java.lang.annotation.Annotation> |
getDeclaredAnnotations(java.lang.reflect.AnnotatedElement element) |
protected java.lang.annotation.Annotation[] |
internalGetAnnotations(java.lang.reflect.AnnotatedElement element) |
protected java.lang.annotation.Annotation[] |
internalGetDeclaredAnnotations(java.lang.reflect.AnnotatedElement element) |
cleanuppublic DefaultReflectionCache(TypeStore store)
protected java.lang.annotation.Annotation[] internalGetAnnotations(java.lang.reflect.AnnotatedElement element)
protected java.lang.annotation.Annotation[] internalGetDeclaredAnnotations(java.lang.reflect.AnnotatedElement element)
public void cleanupAfterBoot()
BootstrapServicecleanupAfterBoot in interface BootstrapServicepublic java.util.Set<java.lang.annotation.Annotation> getAnnotations(java.lang.reflect.AnnotatedElement element)
getAnnotations in interface ReflectionCachepublic java.util.Set<java.lang.annotation.Annotation> getDeclaredAnnotations(java.lang.reflect.AnnotatedElement element)
getDeclaredAnnotations in interface ReflectionCachepublic java.util.Set<java.lang.annotation.Annotation> getBackedAnnotatedTypeAnnotationSet(java.lang.Class<?> javaClass)
ReflectionCacheBackedAnnotatedType. This are all annotations declared directly on the
BackedAnnotatedType.getJavaClass() and all Inherited annotations. In addition, scope annotation
inheritance rules (as defined in section 4.1) are applied.getBackedAnnotatedTypeAnnotationSet in interface ReflectionCachepublic <T extends java.lang.annotation.Annotation> ReflectionCache.AnnotationClass<T> getAnnotationClass(java.lang.Class<T> clazz)
getAnnotationClass in interface ReflectionCacheCopyright © 2015. All Rights Reserved.