- All Implemented Interfaces:
Serializable
,Comparable<LazyMOMProvider.Scope>
- Enclosing class:
- LazyMOMProvider
Possible scopes (environments) in which the provider (and object associated with it) could be in.
Default scope is STANDALONE - applied during initialization of classes. For now, only possible scope change for a
object can be in this direction: STANDALONE -> GLASSFISH_NO_JMX -> GLASSFISH_JMX.
-
Enum Constant Summary
Enum ConstantDescriptionSame as STANDALONE.In this scope almost all Gmbal API call are deferred until a JMX connection to a Glassfish server is created -
Method Summary
Modifier and TypeMethodDescriptionstatic LazyMOMProvider.Scope
Returns the enum constant of this type with the specified name.static LazyMOMProvider.Scope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDALONE
-
GLASSFISH_NO_JMX
In this scope almost all Gmbal API call are deferred until a JMX connection to a Glassfish server is created -
GLASSFISH_JMX
Same as STANDALONE. Gmbal API calls are processed immediately.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-