public class ProcessAnnotatedTypeEventResolvable extends Object implements Resolvable
Modifier | Constructor and Description |
---|---|
protected |
ProcessAnnotatedTypeEventResolvable(Set<Type> types,
SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
apply(UnbackedAnnotatedType<?> annotatedType,
Class<? extends Annotation> requiredAnnotation) |
protected boolean |
containsAnnotation(BackedAnnotatedType<?> annotatedType,
Collection<Class<? extends Annotation>> requiredAnnotations) |
protected boolean |
containsAnnotation(UnbackedAnnotatedType<?> annotatedType,
Collection<Class<? extends Annotation>> requiredAnnotations) |
boolean |
containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations)
Returns true if and only if the underlying
AnnotatedType contains any of the given annotation types. |
boolean |
equals(Object obj) |
static ProcessAnnotatedTypeEventResolvable |
forProcessAnnotatedType(SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
static ProcessAnnotatedTypeEventResolvable |
forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType,
RequiredAnnotationDiscovery discovery) |
<A extends Annotation> |
getAnnotation(Class<A> annotationType)
Get the instance of the Annotation
|
javax.enterprise.inject.spi.Bean<?> |
getDeclaringBean()
Get the declaring the injection point, or null if there is none
|
Class<?> |
getJavaClass()
Get the underlying java class used to generate this resolvable, or null
if no java class was used
|
Set<QualifierInstance> |
getQualifiers()
Get the bindings to use for resolution.
|
Set<Type> |
getTypes()
The types that this resolvable may be assigned to
|
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends 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(Set<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 Set<Type> getTypes()
Resolvable
getTypes
in interface Resolvable
public Set<QualifierInstance> getQualifiers()
Resolvable
getQualifiers
in interface Resolvable
public boolean containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations)
AnnotatedType
contains any of the given annotation types.protected boolean containsAnnotation(UnbackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations)
protected boolean apply(UnbackedAnnotatedType<?> annotatedType, Class<? extends Annotation> requiredAnnotation)
protected boolean containsAnnotation(BackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations)
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Resolvable
isAnnotationPresent
in interface Resolvable
annotationType
- the annotation type to look forpublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
Resolvable
getAnnotation
in interface Resolvable
A
- the type of the annotationannotationType
- the type of the annotationpublic Class<?> getJavaClass()
Resolvable
getJavaClass
in interface Resolvable
public javax.enterprise.inject.spi.Bean<?> getDeclaringBean()
Resolvable
getDeclaringBean
in interface Resolvable
public boolean isDelegate()
Resolvable
isDelegate
in interface Resolvable
Copyright © 2016. All rights reserved.