Class ApplicationContextUtil

java.lang.Object
com.helixframework.env.ApplicationContextUtil

public final class ApplicationContextUtil extends Object
Utility for checking the current Spring application context.
  • Method Details

    • isMainApplicationContext

      public static boolean isMainApplicationContext(org.springframework.context.ApplicationContext ctx)
      Checks if the supplied application context is the main context.
      Parameters:
      ctx - application context
      Returns:
      true if it is the main context; otherwise false
    • isManagementContext

      public static boolean isManagementContext(org.springframework.context.ApplicationContext ctx)
      Checks if the supplied application context is the actuator context.
      Parameters:
      ctx - application context
      Returns:
      true if it is the actuator context; otherwise false