org.jboss.dependency.spi
Enum ControllerMode

java.lang.Object
  extended by java.lang.Enum<ControllerMode>
      extended by org.jboss.dependency.spi.ControllerMode
All Implemented Interfaces:
Serializable, Comparable<ControllerMode>

public enum ControllerMode
extends Enum<ControllerMode>

Mode of the context.

Version:
$Revision: 90317 $
Author:
Adrian Brock, Ales Justin

Enum Constant Summary
ASYNCHRONOUS
           
AUTOMATIC
           
DISABLED
           
MANUAL
           
ON_DEMAND
           
 
Method Summary
static ControllerMode getInstance(String modeString)
          Get the right enum instance from mode string.
 String getModeString()
          Get the mode string
 ControllerState getRequiredState()
          The required state.
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
static ControllerMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ControllerMode[] 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

AUTOMATIC

public static final ControllerMode AUTOMATIC

ON_DEMAND

public static final ControllerMode ON_DEMAND

MANUAL

public static final ControllerMode MANUAL

DISABLED

public static final ControllerMode DISABLED

ASYNCHRONOUS

public static final ControllerMode ASYNCHRONOUS
Method Detail

values

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

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

valueOf

public static ControllerMode 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
NullPointerException - if the argument is null

getInstance

public static ControllerMode getInstance(String modeString)
Get the right enum instance from mode string.

Parameters:
modeString - the mode string param
Returns:
matching enum or exception if no match

getModeString

public String getModeString()
Get the mode string

Returns:
the mode string

getRequiredState

public ControllerState getRequiredState()
The required state.

Returns:
the required state

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.