public class DefaultReflectionCache extends AbstractBootstrapService implements ReflectionCache
| 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.
|
Annotation[] |
getAnnotations(AnnotatedElement element) |
Set<Annotation> |
getAnnotationSet(AnnotatedElement element) |
Set<Annotation> |
getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
Returns the set of annotations for a
BackedAnnotatedType. |
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) |
cleanuppublic DefaultReflectionCache(TypeStore store)
protected Annotation[] internalGetAnnotations(AnnotatedElement element)
protected Annotation[] internalGetDeclaredAnnotations(AnnotatedElement element)
public Annotation[] getAnnotations(AnnotatedElement element)
getAnnotations in interface ReflectionCachepublic Annotation[] getDeclaredAnnotations(AnnotatedElement element)
getDeclaredAnnotations in interface ReflectionCachepublic Annotation[] getParameterAnnotations(Constructor<?> constructor, int parameterPosition)
getParameterAnnotations in interface ReflectionCachepublic Annotation[] getParameterAnnotations(Method method, int parameterPosition)
getParameterAnnotations in interface ReflectionCachepublic void cleanupAfterBoot()
BootstrapServicecleanupAfterBoot in interface BootstrapServicepublic Set<Annotation> getAnnotationSet(AnnotatedElement element)
getAnnotationSet in interface ReflectionCachepublic Set<Annotation> getDeclaredAnnotationSet(AnnotatedElement element)
getDeclaredAnnotationSet in interface ReflectionCachepublic Set<Annotation> getParameterAnnotationSet(BackedAnnotatedParameter<?> parameter)
getParameterAnnotationSet in interface ReflectionCachepublic Set<Annotation> getBackedAnnotatedTypeAnnotationSet(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 ReflectionCacheCopyright © 2015. All Rights Reserved.