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

Constructor Detail

StereotypeModel

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

Parameters:
sterotype - The stereotype
Method Detail

initValid

protected void initValid()
Description copied from class: AnnotationModel
Validates the data for correct annotation

Overrides:
initValid in class AnnotationModel<T extends java.lang.annotation.Annotation>

getDefaultScopeType

public java.lang.annotation.Annotation getDefaultScopeType()
Get the default scope type the stereotype specifies

Returns:
The default scope type, or null if none is specified

getInterceptorBindings

public java.util.Set<java.lang.annotation.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 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getMetaAnnotationTypes()
Gets the meta-annotation type

Specified by:
getMetaAnnotationTypes in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The Stereotype class

isPolicy

public boolean isPolicy()
Returns:

getInheritedSterotypes

public java.util.Set<java.lang.annotation.Annotation> getInheritedSterotypes()

getMetaAnnotations

public java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations()
Returns:
the metaAnnotations


Copyright © 2008-2009 Seam Framework. All Rights Reserved.