org.jboss.weld.metadata.cache
Class ScopeModel<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.ScopeModel<T>

public class ScopeModel<T extends java.lang.annotation.Annotation>
extends AnnotationModel<T>

Model of a scope

Author:
Pete Muir

Field Summary
 
Fields inherited from class org.jboss.weld.metadata.cache.AnnotationModel
valid
 
Constructor Summary
ScopeModel(java.lang.Class<T> scope, ClassTransformer classTransformer)
          Constrctor
 
Method Summary
protected  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getMetaAnnotationTypes()
          Gets the corresponding meta-annotation type class
protected  void initValid()
          Validates the data for correct annotation
 boolean isNormal()
          Indicates if the scope is "normal"
 boolean isPassivating()
          Indicates if the scope is "passivating"
 java.lang.String toString()
          Gets a string representation of the scope model
 
Methods inherited from class org.jboss.weld.metadata.cache.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopeModel

public ScopeModel(java.lang.Class<T> scope,
                  ClassTransformer classTransformer)
Constrctor

Parameters:
scope - The scope type
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>

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

protected java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getMetaAnnotationTypes()
Gets the corresponding meta-annotation type class

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

toString

public java.lang.String toString()
Gets a string representation of the scope model

Overrides:
toString in class AnnotationModel<T extends java.lang.annotation.Annotation>
Returns:
The string representation


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