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 protectedProcessAnnotatedTypeEventResolvable(Set<Type> types, SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.booleanequals(Object obj)static ProcessAnnotatedTypeEventResolvableforProcessAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)static ProcessAnnotatedTypeEventResolvableforProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery)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 tointhashCode()booleanisDelegate()Returns true if the resolvable represents a delegate injection point, which requires specific rules (8.3.1) to be used during resolution.static ProcessAnnotatedTypeEventResolvableof(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:ResolvableThe types that this resolvable may be assigned to- Specified by:
getTypesin interfaceResolvable- Returns:
-
getQualifiers
public Set<QualifierInstance> 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
public Class<?> 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 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
-
-