Class StereotypeModel<T extends Annotation>

java.lang.Object
org.jboss.weld.metadata.cache.AnnotationModel<T>
org.jboss.weld.metadata.cache.StereotypeModel<T>

public class StereotypeModel<T extends Annotation> extends AnnotationModel<T>
A meta model for a stereotype, allows us to cache a stereotype and to validate it
Author:
Pete Muir
  • Constructor Details

    • StereotypeModel

      public StereotypeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
      Constructor
  • Method Details

    • init

      protected void init(EnhancedAnnotation<T> annotatedAnnotation)
      Description copied from class: AnnotationModel
      Initializes the type and validates it
      Overrides:
      init in class AnnotationModel<T extends Annotation>
    • check

      protected void check(EnhancedAnnotation<T> annotatedAnnotation)
      Overrides:
      check in class AnnotationModel<T extends Annotation>
    • getDefaultScopeType

      public Annotation getDefaultScopeType()
      Get the default scope type the stereotype specifies
      Returns:
      The default scope type, or null if none is specified
    • getInterceptorBindings

      public Set<Annotation> getInterceptorBindings()
      Get any interceptor bindings the the stereotype specifies
      Returns:
      The interceptor bindings, or an empty set if none are specified.
    • isBeanNameDefaulted

      public boolean isBeanNameDefaulted()
      Indicates if the bean name is defaulted
      Returns:
      True if defaulted, false otherwise
    • getMetaAnnotationTypes

      protected Set<Class<? extends Annotation>> getMetaAnnotationTypes()
      Gets the meta-annotation type
      Specified by:
      getMetaAnnotationTypes in class AnnotationModel<T extends Annotation>
      Returns:
      The Stereotype class
    • isAlternative

      public boolean isAlternative()
      Returns:
    • getInheritedStereotypes

      public Set<Annotation> getInheritedStereotypes()
    • getMetaAnnotations

      public Set<Annotation> getMetaAnnotations()
      Returns:
      the metaAnnotations