org.jboss.weld.metadata.cache

Class MetaAnnotationStore

  • All Implemented Interfaces:
    Service


    public class MetaAnnotationStoreextends Objectimplements 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
      • 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(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()
        Description copied from interface: Service
        Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
        Specified by:
        cleanup in interface Service

Copyright © 2015. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14