Top Description Constructors Methods
org.glassfish.hk2.runlevel.utilities

public Class Utilities

extends Object
Class Inheritance
Imports
org.glassfish.hk2.api.ActiveDescriptor, .Descriptor, .ServiceLocator, org.glassfish.hk2.runlevel.RunLevel, java.lang.annotation.Annotation, java.util.List

Run level service related utilities.
Author
tbeerbower

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the mode
getRunLevelMode
(ServiceLocator locator, Descriptor
the descriptor
descriptor
,
Integer modeOverride)

Get the run level mode from the metadata of the given descriptor.

public static int

Returns:

the run level
getRunLevelValue
(ServiceLocator locator, Descriptor
the descriptor to get the run level for
descriptor
)

Get the run level value from the metadata of the given descriptor.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilitiesback to summary
public Utilities()

Method Detail

getRunLevelModeback to summary
public static int getRunLevelMode(ServiceLocator locator, Descriptor descriptor, Integer modeOverride)

Get the run level mode from the metadata of the given descriptor.

Parameters
descriptor:Descriptor

the descriptor

Returns:int

the mode

getRunLevelValueback to summary
public static int getRunLevelValue(ServiceLocator locator, Descriptor descriptor)

Get the run level value from the metadata of the given descriptor.

Parameters
descriptor:Descriptor

the descriptor to get the run level for

Returns:int

the run level