Package org.jboss.weld.resolution
Class QualifierInstance
java.lang.Object
org.jboss.weld.resolution.QualifierInstance
Optimized representation of a qualifier. JDK annotation proxies are slooow, this class provides significantly faster
equals/hashCode methods, that also
correctly handle non binding attributes.
Note that Weld is using this representation for interceptor bindings as well. See also
BeanManagerImpl.resolveInterceptors(jakarta.enterprise.inject.spi.InterceptionType, java.util.Collection)
- Author:
- Stuart Douglas, Martin Kouba
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQualifierInstance(Class<? extends Annotation> annotationClass, Map<String, Object> values) Constructs a qualifier instance without any checks. -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<? extends Annotation>inthashCode()static Set<QualifierInstance>of(jakarta.enterprise.inject.spi.Bean<?> bean, MetaAnnotationStore store) static QualifierInstanceof(Annotation annotation, MetaAnnotationStore store) static Set<QualifierInstance>of(Set<Annotation> qualifiers, MetaAnnotationStore store) toString()
-
Field Details
-
ANY
-
DEFAULT
-
-
Constructor Details
-
QualifierInstance
Constructs a qualifier instance without any checks. This method should be used with care.- Parameters:
annotationClass-values-- See Also:
-
-
Method Details
-
of
-
of
public static Set<QualifierInstance> of(jakarta.enterprise.inject.spi.Bean<?> bean, MetaAnnotationStore store) -
of
- Parameters:
annotation-store-- Returns:
- a new qualifier instance for the given annotation
-
equals
-
getAnnotationClass
-
getValue
-
hashCode
public int hashCode() -
toString
-