org.jitr.core
Enum OperationalMode

java.lang.Object
  extended by java.lang.Enum<OperationalMode>
      extended by org.jitr.core.OperationalMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperationalMode>

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

Defines the possible operational running modes for Jitr.

Author:
Josh Devins (info@joshdevins.net)

Enum Constant Summary
EXTERNAL
          Jitr does not run the container and uses an external Spring application context.
INTERNAL
          Jitr runs the container and uses the same Spring application context as the running web application.
MIXED
          Jitr runs the container and uses an external Spring application context.
 
Method Summary
 boolean isContainerEnabled()
           
static OperationalMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperationalMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTERNAL

public static final OperationalMode INTERNAL
Jitr runs the container and uses the same Spring application context as the running web application.


MIXED

public static final OperationalMode MIXED
Jitr runs the container and uses an external Spring application context.


EXTERNAL

public static final OperationalMode EXTERNAL
Jitr does not run the container and uses an external Spring application context.

Method Detail

values

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

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

valueOf

public static OperationalMode 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
java.lang.NullPointerException - if the argument is null

isContainerEnabled

public boolean isContainerEnabled()


Copyright © 2009. All Rights Reserved.