Class ScopeModel<T extends Annotation>

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

public class ScopeModel<T extends Annotation> extends AnnotationModel<T>
Model of a scope
Author:
Pete Muir
  • Constructor Details

    • ScopeModel

      public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
      Constructor
      Parameters:
      scope - The scope type
  • Method Details

    • check

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

      public boolean isNormal()
      Indicates if the scope is "normal"
      Returns:
      True if normal, false otherwise
    • isPassivating

      public boolean isPassivating()
      Indicates if the scope is "passivating"
      Returns:
      True if passivating, false otherwise
    • getMetaAnnotationTypes

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

      public String toString()
      Gets a string representation of the scope model
      Overrides:
      toString in class AnnotationModel<T extends Annotation>
      Returns:
      The string representation