com.sun.enterprise.module
Enum ModuleState

java.lang.Object
  extended by java.lang.Enum<ModuleState>
      extended by com.sun.enterprise.module.ModuleState
All Implemented Interfaces:
Serializable, Comparable<ModuleState>

public enum ModuleState
extends Enum<ModuleState>

ModuleState define the state of a Module instance.

Author:
Jerome Dochez

Enum Constant Summary
ERROR
          a Module is in ERROR state when its class loader cannot be constructed or when any of its dependent module is in ERROR state.
NEW
          a Module is in NEW state when the module object is constructed but not initialized
PREPARING
          a Module is in PREPARING state when the module looks for its import policy class if any or use the default import policy to construct the network of dependency modules.
READY
          the Module has been started as all its dependencies were satisfied
RESOLVED
          a Module is in RESOLVED state when the validation is finished and successful and before the module is started
 
Method Summary
static ModuleState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ModuleState[] 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

NEW

public static final ModuleState NEW
a Module is in NEW state when the module object is constructed but not initialized


PREPARING

public static final ModuleState PREPARING
a Module is in PREPARING state when the module looks for its import policy class if any or use the default import policy to construct the network of dependency modules.


RESOLVED

public static final ModuleState RESOLVED
a Module is in RESOLVED state when the validation is finished and successful and before the module is started


READY

public static final ModuleState READY
the Module has been started as all its dependencies were satisfied


ERROR

public static final ModuleState ERROR
a Module is in ERROR state when its class loader cannot be constructed or when any of its dependent module is in ERROR state.

Method Detail

values

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

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

valueOf

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


Copyright © 2013 Oracle Corporation. All Rights Reserved.