Package com.helixframework.env
Class ApplicationContextUtil
java.lang.Object
com.helixframework.env.ApplicationContextUtil
Utility for checking the current Spring application context.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisMainApplicationContext(org.springframework.context.ApplicationContext ctx) Checks if the supplied application context is the main context.static booleanisManagementContext(org.springframework.context.ApplicationContext ctx) Checks if the supplied application context is the actuator 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:
trueif it is the main context; otherwisefalse
-
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:
trueif it is the actuator context; otherwisefalse
-