org.apache.shale.tiger.managed
Enum Scope

java.lang.Object
  extended by java.lang.Enum<Scope>
      extended by org.apache.shale.tiger.managed.Scope
All Implemented Interfaces:
Serializable, Comparable<Scope>

public enum Scope
extends Enum<Scope>

Enumeration describing the valid values for the scope attribute of a Bean annotation.


Enum Constant Summary
APPLICATION
          A created bean should be stored in application scope.
NONE
          A created bean should not be stored in any scope.
REQUEST
          A created bean should be stored in request scope.
SESSION
          A created bean should be stored in session scope.
 
Method Summary
static Scope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Scope[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final Scope NONE

A created bean should not be stored in any scope.


REQUEST

public static final Scope REQUEST

A created bean should be stored in request scope.


SESSION

public static final Scope SESSION

A created bean should be stored in session scope.


APPLICATION

public static final Scope APPLICATION

A created bean should be stored in application scope.

Method Detail

values

public static final Scope[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Scope c : Scope.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Scope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.