com.softwareag.centrasite.appl.framework.persistence
Enum BeanMode

java.lang.Object
  extended by java.lang.Enum<BeanMode>
      extended by com.softwareag.centrasite.appl.framework.persistence.BeanMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BeanMode>

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

This enumeration represents the supported bean modes. The application may specify the required bean mode using the Configuration object.

See Also:
Configuration

Enum Constant Summary
BACKED
          This BeanMode is used when "backed" beans are required.
SIMPLE
          Deprecated. Use BACKED.
 
Method Summary
static BeanMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BeanMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SIMPLE

public static final BeanMode SIMPLE
Deprecated. Use BACKED.
This BeanMode is used when "simple" beans are required. These are beans that contain the values itself and are not backed by a RegistryObject.


BACKED

public static final BeanMode BACKED
This BeanMode is used when "backed" beans are required. These are beans that contain reference to the corresponding RegistryObject and update its state when their state changes. This has several advantages like locking, lazy loading etc.

Method Detail

values

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

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

valueOf

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