Package org.exoplatform.container
Enum Class Mode
- All Implemented Interfaces:
Serializable,Comparable<Mode>,Constable
This enumeration defines all the possible mode supported by the kernel.
- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse this mode when you want to see the kernel automatically fixes dependency issues such as unexpected call to getComponentInstanceOfType() and/or getComponentInstance()Indicates whether or not the multi-threading should be disabled on startup complete.Use this mode when you want to delegate several threads to the kernel to create, initialize and start components. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the system parameter to indicate that we want to enable the auto solve dependency issues mode of the kernelstatic final StringThe name of the system parameter to indicate that we want to disable the multi-threaded mode once theTopExoContaineris fully startedstatic final StringThe name of the system parameter to indicate that we want to enable the multi-threaded mode of the kernel -
Method Summary
-
Enum Constant Details
-
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
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
Indicates whether or not the multi-threading should be disabled on startup complete.
-
-
Field Details
-
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:
-
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:
-
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:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-