public class DefaultReflectionCache extends org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService implements ReflectionCache
Constructor and Description |
---|
DefaultReflectionCache(TypeStore store) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupAfterBoot() |
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) |
public DefaultReflectionCache(TypeStore store)
protected Annotation[] internalGetAnnotations(AnnotatedElement element)
protected Annotation[] internalGetDeclaredAnnotations(AnnotatedElement element)
public Annotation[] getAnnotations(AnnotatedElement element)
getAnnotations
in interface ReflectionCache
public Annotation[] getDeclaredAnnotations(AnnotatedElement element)
getDeclaredAnnotations
in interface ReflectionCache
public Annotation[] getParameterAnnotations(Constructor<?> constructor, int parameterPosition)
getParameterAnnotations
in interface ReflectionCache
public Annotation[] getParameterAnnotations(Method method, int parameterPosition)
getParameterAnnotations
in interface ReflectionCache
public void cleanupAfterBoot()
cleanupAfterBoot
in interface org.jboss.weld.bootstrap.api.BootstrapService
public Set<Annotation> getAnnotationSet(AnnotatedElement element)
getAnnotationSet
in interface ReflectionCache
public Set<Annotation> getDeclaredAnnotationSet(AnnotatedElement element)
getDeclaredAnnotationSet
in interface ReflectionCache
public Set<Annotation> getParameterAnnotationSet(BackedAnnotatedParameter<?> parameter)
getParameterAnnotationSet
in interface ReflectionCache
public Set<Annotation> getBackedAnnotatedTypeAnnotationSet(Class<?> javaClass)
ReflectionCache
BackedAnnotatedType
. 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 ReflectionCache
Copyright © 2016. All rights reserved.