Package org.jboss.weld.bootstrap.events
Class ProcessAnnotatedTypeEventResolvable
- java.lang.Object
-
- org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeEventResolvable
-
- All Implemented Interfaces:
Resolvable
public class ProcessAnnotatedTypeEventResolvable extends Object implements Resolvable
- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessAnnotatedTypeEventResolvable(Set<Type> types, SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 underlyingAnnotatedType
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)
jakarta.enterprise.inject.spi.Bean<?>
getDeclaringBean()
Get the declaring the injection point, or null if there is noneClass<?>
getJavaClass()
Get the underlying java class used to generate this resolvable, or null if no java class was usedSet<QualifierInstance>
getQualifiers()
Get the bindings to use for resolution.Set<Type>
getTypes()
The types that this resolvable may be assigned toint
hashCode()
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)
-
-
-
Constructor Detail
-
ProcessAnnotatedTypeEventResolvable
protected ProcessAnnotatedTypeEventResolvable(Set<Type> types, SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
-
Method Detail
-
of
public static ProcessAnnotatedTypeEventResolvable of(ProcessAnnotatedTypeImpl<?> event, RequiredAnnotationDiscovery discovery)
-
forProcessAnnotatedType
public static ProcessAnnotatedTypeEventResolvable forProcessAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
forProcessSyntheticAnnotatedType
public static ProcessAnnotatedTypeEventResolvable forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
getTypes
public Set<Type> getTypes()
Description copied from interface:Resolvable
The types that this resolvable may be assigned to- Specified by:
getTypes
in interfaceResolvable
- Returns:
-
getQualifiers
public Set<QualifierInstance> getQualifiers()
Description copied from interface:Resolvable
Get the bindings to use for resolution. @Default will be returned if no bindings were specified- Specified by:
getQualifiers
in interfaceResolvable
- Returns:
- the bindings
-
containsRequiredAnnotations
public boolean containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations)
Returns true if and only if the underlyingAnnotatedType
contains any of the given annotation types.
-
containsAnnotation
protected boolean containsAnnotation(UnbackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations)
-
apply
protected boolean apply(UnbackedAnnotatedType<?> annotatedType, Class<? extends Annotation> requiredAnnotation)
- Returns:
- true if predicate returns true for any annotation defined anywhere on the annotatedType
-
containsAnnotation
protected boolean containsAnnotation(BackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations)
-
getJavaClass
public Class<?> getJavaClass()
Description copied from interface:Resolvable
Get the underlying java class used to generate this resolvable, or null if no java class was used- Specified by:
getJavaClass
in interfaceResolvable
- Returns:
- the java class
-
getDeclaringBean
public jakarta.enterprise.inject.spi.Bean<?> getDeclaringBean()
Description copied from interface:Resolvable
Get the declaring the injection point, or null if there is none- Specified by:
getDeclaringBean
in interfaceResolvable
- Returns:
-
isDelegate
public boolean isDelegate()
Description copied from interface:Resolvable
Returns true if the resolvable represents a delegate injection point, which requires specific rules (8.3.1) to be used during resolution.- Specified by:
isDelegate
in interfaceResolvable
-
-