Class RunLevelServiceUtilities
java.lang.Object
org.glassfish.hk2.runlevel.RunLevelServiceUtilities
Utilities for using the RunLevelService
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableRunLevelService(ServiceLocator locator) Enables the RunLevelService in the givenServiceLocator.static RunLevelgetRunLevelAnnotation(int value) Returns aRunLevelscope annotation with the given value and RUNLEVEL_MODE_VALIDATING as the modestatic RunLevelgetRunLevelAnnotation(int value, int mode) Returns aRunLevelscope annotation with the given value and modeprivate static boolean
-
Constructor Details
-
RunLevelServiceUtilities
public RunLevelServiceUtilities()
-
-
Method Details
-
enableRunLevelService
Enables the RunLevelService in the givenServiceLocator. If theRunLevelContextis already registered then this method does nothing.All services needed by the RunLevelService feature are marked with
Serviceand hence would be automatically picked up in environments that use automatic service discovery- Parameters:
locator- the non-null service locator to add the run-level service to
-
isDupException
-
getRunLevelAnnotation
-
getRunLevelAnnotation
-