Class MetaAnnotationStore

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.Service

    public class MetaAnnotationStore
    extends Object
    implements org.jboss.weld.bootstrap.api.Service
    Metadata singleton for holding EJB metadata, scope models etc.
    Author:
    Pete Muir
    • Constructor Detail

      • MetaAnnotationStore

        public MetaAnnotationStore​(ClassTransformer classTransformer)
    • Method Detail

      • clearAnnotationData

        public void clearAnnotationData​(Class<? extends Annotation> annotationClass)
        removes all data for an annotation class. This should be called after an annotation has been modified through the SPI
      • getStereotype

        public <T extends AnnotationStereotypeModel<T> getStereotype​(Class<T> stereotype)
        Gets a stereotype model

        Adds the model if it is not present.

        Type Parameters:
        T - The type
        Parameters:
        stereotype - The stereotype
        Returns:
        The stereotype model
      • getScopeModel

        public <T extends AnnotationScopeModel<T> getScopeModel​(Class<T> scope)
        Gets a scope model

        Adds the model if it is not present.

        Type Parameters:
        T - The type
        Parameters:
        scope - The scope type
        Returns:
        The scope type model
      • getBindingTypeModel

        public <T extends AnnotationQualifierModel<T> getBindingTypeModel​(Class<T> bindingType)
        Gets a binding type model.

        Adds the model if it is not present.

        Type Parameters:
        T - The type
        Parameters:
        bindingType - The binding type
        Returns:
        The binding type model
      • getInterceptorBindingModel

        public <T extends AnnotationInterceptorBindingModel<T> getInterceptorBindingModel​(Class<T> interceptorBinding)
        Parameters:
        interceptorBinding -
        Returns:
      • getQualifierInstance

        public QualifierInstance getQualifierInstance​(Annotation annotation)
        Parameters:
        annotation -
        Returns:
        the qualifier instance for the given annotation, uses cache if possible
      • getQualifierInstances

        public Set<QualifierInstance> getQualifierInstances​(jakarta.enterprise.inject.spi.Bean<?> bean)
        Parameters:
        bean -
        Returns:
        the set of qualifier instances for the given bean, uses caches if possible
      • getQualifierInstances

        public Set<QualifierInstance> getQualifierInstances​(Set<Annotation> annotations)
        Parameters:
        annotations -
        Returns:
        the set of qualifier instances, uses caches if possible
      • toString

        public String toString()
        Gets a string representation
        Overrides:
        toString in class Object
        Returns:
        A string representation
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service