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>
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
ConstructorsConstructorDescriptionStereotypeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck(EnhancedAnnotation<T> annotatedAnnotation) Get the default scope type the stereotype specifiesGet any interceptor bindings the the stereotype specifiesprotected Set<Class<? extends Annotation>>Gets the meta-annotation typeprotected voidinit(EnhancedAnnotation<T> annotatedAnnotation) Initializes the type and validates itbooleanbooleanIndicates if the bean name is defaultedMethods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, initType, initValid, isValid, toString
-
Constructor Details
-
StereotypeModel
Constructor
-
-
Method Details
-
init
Description copied from class:AnnotationModelInitializes the type and validates it- Overrides:
initin classAnnotationModel<T extends Annotation>
-
check
- Overrides:
checkin classAnnotationModel<T extends Annotation>
-
getDefaultScopeType
Get the default scope type the stereotype specifies- Returns:
- The default scope type, or null if none is specified
-
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
Gets the meta-annotation type- Specified by:
getMetaAnnotationTypesin classAnnotationModel<T extends Annotation>- Returns:
- The Stereotype class
-
isAlternative
public boolean isAlternative()- Returns:
-
getInheritedStereotypes
-
getMetaAnnotations
- Returns:
- the metaAnnotations
-