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>
Model of a scope
- Author:
- Pete Muir
-
Field Summary
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck(EnhancedAnnotation<T> annotatedAnnotation) protected Set<Class<? extends Annotation>>Gets the corresponding meta-annotation type classbooleanisNormal()Indicates if the scope is "normal"booleanIndicates if the scope is "passivating"toString()Gets a string representation of the scope modelMethods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, initValid, isValid
-
Constructor Details
-
ScopeModel
Constructor- Parameters:
scope- The scope type
-
-
Method Details
-
check
- 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
Gets the corresponding meta-annotation type class- Specified by:
getMetaAnnotationTypesin classAnnotationModel<T extends Annotation>- Returns:
- The ScopeType class
-
toString
Gets a string representation of the scope model- Overrides:
toStringin classAnnotationModel<T extends Annotation>- Returns:
- The string representation
-