Class BeanDeployment
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.jboss.jandex.AnnotationInstance>extractInterceptorBindings(org.jboss.jandex.AnnotationInstance annotation) Extracts interceptor bindings from given annotation instance.org.jboss.jandex.AnnotationInstancegetAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) Collection<org.jboss.jandex.AnnotationInstance>getAnnotations(org.jboss.jandex.AnnotationTarget target) org.jboss.jandex.IndexViewThis index is optional and is used to discover types during type-safe resolution.org.jboss.jandex.IndexViewReturns the index that was used during discovery and type-safe resolution.getBeans()Collection<org.jboss.jandex.ClassInfo>getInterceptorNonbindingMembers(org.jboss.jandex.DotName name) Returns the set of names of non-binding annotation members of given interceptor binding annotation that was registered throughInterceptorBindingRegistrar.getQualifierNonbindingMembers(org.jboss.jandex.DotName name) Returns the set of names of non-binding annotation members of given qualifier annotation that was registered throughQualifierRegistrar.Collection<org.jboss.jandex.ClassInfo>booleanhasAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) voidRe-initialize the map that is used to speed-up lookup requests.static Set<org.jboss.jandex.DotName>initBeanDefiningAnnotations(Collection<BeanDefiningAnnotation> additionalBeanDefiningAnnotations, Set<org.jboss.jandex.DotName> stereotypes) toString()
-
Method Details
-
initBeanByTypeMap
public void initBeanByTypeMap()Re-initialize the map that is used to speed-up lookup requests. -
getBeans
-
getRemovedBeans
-
getQualifiers
-
getInterceptorBindings
- Returns:
- the collection of interceptor bindings; the container annotations of repeating interceptor binding are not included
- See Also:
-
getInjectionPoints
-
getObservers
-
getInterceptors
-
getDecorators
-
getStereotypes
-
getBeanArchiveIndex
public org.jboss.jandex.IndexView getBeanArchiveIndex()Returns the index that was used during discovery and type-safe resolution.In general, the returned index is usually "computing" which means that it attempts to compute the information for the classes that were not part of the initial bean archive index. I.e. the returned index corresponds to
BeanProcessor.Builder.setComputingBeanArchiveIndex(IndexView). However, if the computing index was not set then the index set byBeanProcessor.Builder.setImmutableBeanArchiveIndex(IndexView)is used instead.- Returns:
- the bean archive index
-
getApplicationIndex
public org.jboss.jandex.IndexView getApplicationIndex()This index is optional and is used to discover types during type-safe resolution.Some types may not be part of the bean archive index but are still needed during type-safe resolution.
- Returns:
- the application index or
null
-
getBeanResolver
-
getDelegateInjectionPointResolver
-
getAssignabilityCheck
-
getInterceptorResolver
-
extractInterceptorBindings
public Collection<org.jboss.jandex.AnnotationInstance> extractInterceptorBindings(org.jboss.jandex.AnnotationInstance annotation) Extracts interceptor bindings from given annotation instance. This returns a collection because in case of repeating interceptor bindings there can be multiple. For most instances this will be a singleton instance (if given annotation is an interceptor binding) or an empty list for cases where the annotation is not an interceptor binding.In addition to repeating annotations, the result also includes transitive interceptor bindings.
- Parameters:
annotation- annotation to be inspected- Returns:
- a collection of interceptor bindings or an empty collection
-
getAnnotations
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.AnnotationTarget target) -
getAnnotation
public org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) -
hasAnnotation
public boolean hasAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) -
initBeanDefiningAnnotations
public static Set<org.jboss.jandex.DotName> initBeanDefiningAnnotations(Collection<BeanDefiningAnnotation> additionalBeanDefiningAnnotations, Set<org.jboss.jandex.DotName> stereotypes) -
getInterceptorNonbindingMembers
Returns the set of names of non-binding annotation members of given interceptor binding annotation that was registered throughInterceptorBindingRegistrar.Does not return non-binding members of interceptor bindings that were discovered based on the
@InterceptorBindingannotation; in such case, one has to manually check presence of the@NonBindingannotation on the annotation member declaration.- Parameters:
name- name of the interceptor binding annotation that was registered throughInterceptorBindingRegistrar- Returns:
- set of non-binding annotation members of the interceptor binding annotation
-
getQualifierNonbindingMembers
Returns the set of names of non-binding annotation members of given qualifier annotation that was registered throughQualifierRegistrar.Does not return non-binding members of interceptor bindings that were discovered based on the
@Qualifierannotation; in such case, one has to manually check presence of the@NonBindingannotation on the annotation member declaration.- Parameters:
name- name of the qualifier annotation that was registered throughQualifierRegistrar- Returns:
- set of non-binding annotation members of the qualifier annotation
-
toString
-