org.jboss.weld.metadata.cache
Class StereotypeModel<T extends Annotation>

java.lang.Object
  extended by org.jboss.weld.metadata.cache.AnnotationModel<T>
      extended by 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
StereotypeModel(Class<T> sterotype, ClassTransformer transformer)
          Constructor
 
Method Summary
protected  void check()
           
 Annotation getDefaultScopeType()
          Get the default scope type the stereotype specifies
 Set<Annotation> getInheritedSterotypes()
           
 Set<Annotation> getInterceptorBindings()
          Get any interceptor bindings the the stereotype specifies
 Set<Annotation> getMetaAnnotations()
           
protected  Set<Class<? extends Annotation>> getMetaAnnotationTypes()
          Gets the meta-annotation type
 boolean isAlternative()
           
 boolean isBeanNameDefaulted()
          Indicates if the bean name is defaulted
 
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, initValid, isValid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StereotypeModel

public StereotypeModel(Class<T> sterotype,
                       ClassTransformer transformer)
Constructor

Parameters:
sterotype - The stereotype
Method Detail

check

protected void check()
Overrides:
check in class AnnotationModel<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 class AnnotationModel<T extends Annotation>
Returns:
The Stereotype class

isAlternative

public boolean isAlternative()
Returns:

getInheritedSterotypes

public Set<Annotation> getInheritedSterotypes()

getMetaAnnotations

public Set<Annotation> getMetaAnnotations()
Returns:
the metaAnnotations


Copyright © 2013 Seam Framework. All Rights Reserved.