Package org.exoplatform.container
Enum Mode
- java.lang.Object
-
- java.lang.Enum<Mode>
-
- org.exoplatform.container.Mode
-
- All Implemented Interfaces:
Serializable,Comparable<Mode>
public enum Mode extends Enum<Mode>
This enumeration defines all the possible mode supported by the kernel.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_SOLVE_DEP_ISSUESUse this mode when you want to see the kernel automatically fixes dependency issues such as unexpected call to getComponentInstanceOfType() and/or getComponentInstance()DISABLE_MT_ON_STARTUP_COMPLETEIndicates whether or not the multi-threading should be disabled on startup complete.MULTI_THREADEDUse this mode when you want to delegate several threads to the kernel to create, initialize and start components.
-
Field Summary
Fields Modifier and Type Field Description static StringAUTO_SOLVE_DEP_ISSUES_PARAM_NAMEThe name of the system parameter to indicate that we want to enable the auto solve dependency issues mode of the kernelstatic StringDISABLE_MT_ON_STARTUP_COMPLETE_PARAM_NAMEThe name of the system parameter to indicate that we want to disable the multi-threaded mode once theTopExoContaineris fully startedstatic StringMULTI_THREADED_PARAM_NAMEThe name of the system parameter to indicate that we want to enable the multi-threaded mode of the kernel
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModevalueOf(String name)Returns the enum constant of this type with the specified name.static Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MULTI_THREADED
public static final Mode MULTI_THREADED
Use this mode when you want to delegate several threads to the kernel to create, initialize and start components.
-
AUTO_SOLVE_DEP_ISSUES
public static final Mode AUTO_SOLVE_DEP_ISSUES
Use this mode when you want to see the kernel automatically fixes dependency issues such as unexpected call to getComponentInstanceOfType() and/or getComponentInstance()
-
DISABLE_MT_ON_STARTUP_COMPLETE
public static final Mode DISABLE_MT_ON_STARTUP_COMPLETE
Indicates whether or not the multi-threading should be disabled on startup complete.
-
-
Field Detail
-
MULTI_THREADED_PARAM_NAME
public static final String MULTI_THREADED_PARAM_NAME
The name of the system parameter to indicate that we want to enable the multi-threaded mode of the kernel- See Also:
- Constant Field Values
-
AUTO_SOLVE_DEP_ISSUES_PARAM_NAME
public static final String AUTO_SOLVE_DEP_ISSUES_PARAM_NAME
The name of the system parameter to indicate that we want to enable the auto solve dependency issues mode of the kernel- See Also:
- Constant Field Values
-
DISABLE_MT_ON_STARTUP_COMPLETE_PARAM_NAME
public static final String DISABLE_MT_ON_STARTUP_COMPLETE_PARAM_NAME
The name of the system parameter to indicate that we want to disable the multi-threaded mode once theTopExoContaineris fully started- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Mode[] 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 (Mode c : Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mode 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 nameNullPointerException- if the argument is null
-
-