Class Utilities
java.lang.Object
org.glassfish.hk2.runlevel.utilities.Utilities
Run level service related utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getRunLevelMode
(ServiceLocator locator, Descriptor descriptor, Integer modeOverride) Get the run level mode from the metadata of the given descriptor.static int
getRunLevelValue
(ServiceLocator locator, Descriptor descriptor) Get the run level value from the metadata of the given descriptor.
-
Constructor Details
-
Utilities
public Utilities()
-
-
Method Details
-
getRunLevelValue
Get the run level value from the metadata of the given descriptor.- Parameters:
descriptor
- the descriptor to get the run level for- Returns:
- the run level
-
getRunLevelMode
public static int getRunLevelMode(ServiceLocator locator, Descriptor descriptor, Integer modeOverride) Get the run level mode from the metadata of the given descriptor.- Parameters:
descriptor
- the descriptor- Returns:
- the mode
-