org.jboss.webbeans.metadata
Class ScopeModel<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.jboss.webbeans.metadata.AnnotationModel<T>
      extended by org.jboss.webbeans.metadata.ScopeModel<T>

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

Model of a scope

Author:
Pete Muir

Constructor Summary
ScopeModel(java.lang.Class<T> scope, ClassTransformer classTransformer)
          Constrctor
 
Method Summary
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getMetaAnnotation()
          Gets the corresponding meta-annotation type class
 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.webbeans.metadata.AnnotationModel
getAnnotatedAnnotation, getRawType, init, initType, initValid, 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

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

getMetaAnnotation

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

Specified by:
getMetaAnnotation 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 © 2011. All Rights Reserved.