public class SpringContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getConfigFileName()
Gets the config file name.
|
static org.springframework.context.ApplicationContext |
getContext()
Gets the application context.
|
static boolean |
isSpringContextEnabled()
Checks if the spring context is enabled.
|
static long |
lastLoaded()
Gets the last loaded.
|
static void |
reload()
This will trigger a request to Reload the
SpringContext file
forcefully right now.It is intended to use only by
SpringContextLoader. |
static void |
setConfigFileName(String configFile)
Sets the config file name.
|
static void |
setContext(org.springframework.context.ApplicationContext applicationContext)
Injected from the class "ApplicationContextProvider" which is
automatically loaded during Spring-Initialization.
|
static void |
setSpringContextEnabled(Boolean value)
A convenient flag to Set the spring context enabled/disabled.
|
static void |
shutdown()
Shutdowns the
SpringContext safely.. |
String |
toString() |
public static org.springframework.context.ApplicationContext getContext()
setConfigFileName(String);getContext();public static void setConfigFileName(String configFile)
configFile - the new config file namepublic static String getConfigFileName()
public static void setSpringContextEnabled(Boolean value)
value - the spring context enabled or notpublic static boolean isSpringContextEnabled()
public static void setContext(org.springframework.context.ApplicationContext applicationContext)
applicationContext - the new application context@InterfaceAudience.LimitedPrivate(value="SpringContextLoader.class") @InterfaceStability.Evolving public static void reload()
SpringContext file
forcefully right now.It is intended to use only by
SpringContextLoader.public static void shutdown()
SpringContext safely..public static long lastLoaded()
Copyright © 2016 utils4j. All Rights Reserved.