java.lang.Object
org.glassfish.hk2.runlevel.utilities.Utilities

public class Utilities extends Object
Run level service related utilities.
Author:
tbeerbower
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getRunLevelMode(org.glassfish.hk2.api.ServiceLocator locator, org.glassfish.hk2.api.Descriptor descriptor, Integer modeOverride)
    Get the run level mode from the metadata of the given descriptor.
    static int
    getRunLevelValue(org.glassfish.hk2.api.ServiceLocator locator, org.glassfish.hk2.api.Descriptor descriptor)
    Get the run level value from the metadata of the given descriptor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Utilities

      public Utilities()
  • Method Details

    • getRunLevelValue

      public static int getRunLevelValue(org.glassfish.hk2.api.ServiceLocator locator, org.glassfish.hk2.api.Descriptor descriptor)
      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(org.glassfish.hk2.api.ServiceLocator locator, org.glassfish.hk2.api.Descriptor descriptor, Integer modeOverride)
      Get the run level mode from the metadata of the given descriptor.
      Parameters:
      descriptor - the descriptor
      Returns:
      the mode