org.ow2.bonita.facade
Enum Context

java.lang.Object
  extended by java.lang.Enum<Context>
      extended by org.ow2.bonita.facade.Context
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Context>

public enum Context
extends java.lang.Enum<Context>

Author:
Pierre Vigneras
See Also:
SecurityContext

Enum Constant Summary
AutoDetect
          Auto detect the actual context.
EJB2
          EJB2 J2EE5 context.
EJB3
          EJB3 J2EE5 context.
Standard
          Standard J2SE context.
 
Field Summary
protected static java.util.logging.Logger LOG
           
 
Method Summary
static Context valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Context[] 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

AutoDetect

public static final Context AutoDetect
Auto detect the actual context.


Standard

public static final Context Standard
Standard J2SE context.


EJB3

public static final Context EJB3
EJB3 J2EE5 context.


EJB2

public static final Context EJB2
EJB2 J2EE5 context.

Field Detail

LOG

protected static final java.util.logging.Logger LOG
Method Detail

values

public static final Context[] 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(Context c : Context.values())
        System.out.println(c);

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

valueOf

public static Context valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 OW2 Consortium. All Rights Reserved.