Package org.jboss.weld.bootstrap.events
Class ProcessAnnotatedTypeEventResolvable
java.lang.Object
org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeEventResolvable
- All Implemented Interfaces:
Resolvable
- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessAnnotatedTypeEventResolvable(Set<Type> types, SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapply(UnbackedAnnotatedType<?> annotatedType, Class<? extends Annotation> requiredAnnotation) protected booleancontainsAnnotation(BackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations) protected booleancontainsAnnotation(UnbackedAnnotatedType<?> annotatedType, Collection<Class<? extends Annotation>> requiredAnnotations) booleancontainsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations) Returns true if and only if the underlyingAnnotatedTypecontains any of the given annotation types.booleanforProcessAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) jakarta.enterprise.inject.spi.Bean<?>Get the declaring the injection point, or null if there is noneClass<?>Get the underlying java class used to generate this resolvable, or null if no java class was usedGet the bindings to use for resolution.getTypes()The types that this resolvable may be assigned tointhashCode()booleanReturns true if the resolvable represents a delegate injection point, which requires specific rules (8.3.1) to be used during resolution.of(ProcessAnnotatedTypeImpl<?> event, RequiredAnnotationDiscovery discovery)
-
Constructor Details
-
ProcessAnnotatedTypeEventResolvable
protected ProcessAnnotatedTypeEventResolvable(Set<Type> types, SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
-
Method Details
-
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
Description copied from interface:ResolvableThe types that this resolvable may be assigned to- Specified by:
getTypesin interfaceResolvable- Returns:
-
getQualifiers
Description copied from interface:ResolvableGet the bindings to use for resolution. @Default will be returned if no bindings were specified- Specified by:
getQualifiersin interfaceResolvable- Returns:
- the bindings
-
containsRequiredAnnotations
public boolean containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations) Returns true if and only if the underlyingAnnotatedTypecontains 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
Description copied from interface:ResolvableGet the underlying java class used to generate this resolvable, or null if no java class was used- Specified by:
getJavaClassin interfaceResolvable- Returns:
- the java class
-
getDeclaringBean
public jakarta.enterprise.inject.spi.Bean<?> getDeclaringBean()Description copied from interface:ResolvableGet the declaring the injection point, or null if there is none- Specified by:
getDeclaringBeanin interfaceResolvable- Returns:
-
isDelegate
public boolean isDelegate()Description copied from interface:ResolvableReturns true if the resolvable represents a delegate injection point, which requires specific rules (8.3.1) to be used during resolution.- Specified by:
isDelegatein interfaceResolvable
-
hashCode
public int hashCode() -
equals
-