Package org.jboss.weld.metadata.cache
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
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid
-
-
Constructor Summary
Constructors Constructor Description ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheck(EnhancedAnnotation<T> annotatedAnnotation)protected Set<Class<? extends Annotation>>getMetaAnnotationTypes()Gets the corresponding meta-annotation type classbooleanisNormal()Indicates if the scope is "normal"booleanisPassivating()Indicates if the scope is "passivating"StringtoString()Gets a string representation of the scope model-
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, initValid, isValid
-
-
-
-
Constructor Detail
-
ScopeModel
public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor- Parameters:
scope- The scope type
-
-
Method Detail
-
check
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
- Overrides:
checkin classAnnotationModel<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:
getMetaAnnotationTypesin classAnnotationModel<T extends Annotation>- Returns:
- The ScopeType class
-
toString
public String toString()
Gets a string representation of the scope model- Overrides:
toStringin classAnnotationModel<T extends Annotation>- Returns:
- The string representation
-
-