public class ProcessAnnotatedTypeEventResolvable extends java.lang.Object implements Resolvable
| Modifier | Constructor and Description |
|---|---|
protected |
ProcessAnnotatedTypeEventResolvable(java.util.Set<java.lang.reflect.Type> types,
SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
apply(UnbackedAnnotatedType<?> annotatedType,
java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation) |
protected boolean |
containsAnnotation(BackedAnnotatedType<?> annotatedType,
java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations) |
protected boolean |
containsAnnotation(UnbackedAnnotatedType<?> annotatedType,
java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations) |
boolean |
containsRequiredAnnotations(java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations)
Returns true if and only if the underlying
AnnotatedType contains any of the given annotation types. |
boolean |
equals(java.lang.Object obj) |
static ProcessAnnotatedTypeEventResolvable |
forProcessAnnotatedType(SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
static ProcessAnnotatedTypeEventResolvable |
forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationType)
Get the instance of the Annotation
|
Bean<?> |
getDeclaringBean()
Get the declaring the injection point, or null if there is none
|
java.lang.Class<?> |
getJavaClass()
Get the underlying java class used to generate this resolvable, or null
if no java class was used
|
java.util.Set<QualifierInstance> |
getQualifiers()
Get the bindings to use for resolution.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
The types that this resolvable may be assigned to
|
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Check if an annotation is present
|
boolean |
isDelegate()
Returns true if the resolvable represents a delegate injection point, which requires specific rules (8.3.1) to be used
during resolution.
|
static ProcessAnnotatedTypeEventResolvable |
of(ProcessAnnotatedTypeImpl<?> event,
RequiredAnnotationDiscovery discovery) |
protected ProcessAnnotatedTypeEventResolvable(java.util.Set<java.lang.reflect.Type> types,
SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery)
public static ProcessAnnotatedTypeEventResolvable of(ProcessAnnotatedTypeImpl<?> event, RequiredAnnotationDiscovery discovery)
public static ProcessAnnotatedTypeEventResolvable forProcessAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
public static ProcessAnnotatedTypeEventResolvable forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
public java.util.Set<java.lang.reflect.Type> getTypes()
ResolvablegetTypes in interface Resolvablepublic java.util.Set<QualifierInstance> getQualifiers()
ResolvablegetQualifiers in interface Resolvablepublic boolean containsRequiredAnnotations(java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations)
AnnotatedType contains any of the given annotation types.protected boolean containsAnnotation(UnbackedAnnotatedType<?> annotatedType, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations)
protected boolean apply(UnbackedAnnotatedType<?> annotatedType, java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation)
protected boolean containsAnnotation(BackedAnnotatedType<?> annotatedType, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> requiredAnnotations)
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
ResolvableisAnnotationPresent in interface ResolvableannotationType - the annotation type to look forpublic <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
ResolvablegetAnnotation in interface ResolvableA - the type of the annotationannotationType - the type of the annotationpublic java.lang.Class<?> getJavaClass()
ResolvablegetJavaClass in interface Resolvablepublic Bean<?> getDeclaringBean()
ResolvablegetDeclaringBean in interface Resolvablepublic boolean isDelegate()
ResolvableisDelegate in interface Resolvablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2014. All Rights Reserved.