Package org.jboss.weld.metadata.cache
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
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid
-
-
Constructor Summary
Constructors Constructor Description StereotypeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
check(EnhancedAnnotation<T> annotatedAnnotation)
Annotation
getDefaultScopeType()
Get the default scope type the stereotype specifiesSet<Annotation>
getInheritedStereotypes()
Set<Annotation>
getInterceptorBindings()
Get any interceptor bindings the the stereotype specifiesSet<Annotation>
getMetaAnnotations()
protected Set<Class<? extends Annotation>>
getMetaAnnotationTypes()
Gets the meta-annotation typeprotected void
init(EnhancedAnnotation<T> annotatedAnnotation)
Initializes the type and validates itboolean
isAlternative()
boolean
isBeanNameDefaulted()
Indicates if the bean name is defaulted-
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, initValid, isValid, toString
-
-
-
-
Constructor Detail
-
StereotypeModel
public StereotypeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation)
Constructor
-
-
Method Detail
-
init
protected void init(EnhancedAnnotation<T> annotatedAnnotation)
Description copied from class:AnnotationModel
Initializes the type and validates it- Overrides:
init
in classAnnotationModel<T extends Annotation>
-
check
protected void check(EnhancedAnnotation<T> annotatedAnnotation)
- Overrides:
check
in classAnnotationModel<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 classAnnotationModel<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
-
-