org.oddjob.arooa.registry
Enum ChangeHow

java.lang.Object
  extended by java.lang.Enum<ChangeHow>
      extended by org.oddjob.arooa.registry.ChangeHow
All Implemented Interfaces:
Serializable, Comparable<ChangeHow>

public enum ChangeHow
extends Enum<ChangeHow>

How changes to the ComponentPool should be coordinated.

Author:
rob

Enum Constant Summary
AGAIN
          An existing transaction is expected to be in progress to add changes to.
EITHER
          If a transaction is in progress then add changes to it, if one isn't in progress the create a fresh one.
FRESH
          Create a new transaction for changes to the registry.
MAYBE
          If a transaction is in progress then add changes to it, otherwise don't start a new one.
 
Method Summary
static ChangeHow valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChangeHow[] 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

FRESH

public static final ChangeHow FRESH
Create a new transaction for changes to the registry. No existing transaction is expected to be in progress.


AGAIN

public static final ChangeHow AGAIN
An existing transaction is expected to be in progress to add changes to.


EITHER

public static final ChangeHow EITHER
If a transaction is in progress then add changes to it, if one isn't in progress the create a fresh one.


MAYBE

public static final ChangeHow MAYBE
If a transaction is in progress then add changes to it, otherwise don't start a new one.

Method Detail

values

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

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

valueOf

public static ChangeHow 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