public class StartupUtils extends Object
Constructor and Description |
---|
StartupUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
attachSystemAndEnvPropertySources(org.springframework.context.support.GenericApplicationContext context,
org.springframework.core.env.MutablePropertySources mps) |
static void |
destroyAutoAnnotatedBeans(org.springframework.context.ApplicationContext context) |
static List<org.springframework.core.env.PropertiesPropertySource> |
findPropFiles(File baseDir,
String projectID) |
static RuntimeVersion |
findRuntimeVersion() |
static void |
forceExit(ExitCode code)
Utility method for shutting down the JVM forcefully
|
static XServerConfig |
getServerConfig(org.springframework.context.ApplicationContext context) |
static void |
initAutoAnnotatedBeans(org.springframework.context.ApplicationContext context) |
static void |
processProperties(org.springframework.context.support.GenericApplicationContext context,
XEnvironment.Mode environmentMode,
ClassLoader classLoader,
XProjectConfig projectConfig,
File confDir) |
static void |
startAutoAnnotatedBeans(org.springframework.context.ApplicationContext context) |
static void |
stopAutoAnnotatedBeans(org.springframework.context.ApplicationContext context) |
static void |
verifyDirectory(String argumentName,
boolean readOnly,
File directory)
Utility method to verify a given file on the following conditions.
|
public static void initAutoAnnotatedBeans(org.springframework.context.ApplicationContext context)
public static void startAutoAnnotatedBeans(org.springframework.context.ApplicationContext context)
public static void stopAutoAnnotatedBeans(org.springframework.context.ApplicationContext context)
public static void destroyAutoAnnotatedBeans(org.springframework.context.ApplicationContext context)
public static XServerConfig getServerConfig(org.springframework.context.ApplicationContext context)
public static void processProperties(org.springframework.context.support.GenericApplicationContext context, XEnvironment.Mode environmentMode, ClassLoader classLoader, XProjectConfig projectConfig, File confDir)
public static void attachSystemAndEnvPropertySources(org.springframework.context.support.GenericApplicationContext context, org.springframework.core.env.MutablePropertySources mps)
public static List<org.springframework.core.env.PropertiesPropertySource> findPropFiles(File baseDir, String projectID)
public static RuntimeVersion findRuntimeVersion()
public static void verifyDirectory(String argumentName, boolean readOnly, File directory)
readOnly
is true) or write access (if readOnly
is false)argumentName
- name of the argumentreadOnly
- whether to check only for read access or write accessdirectory
- directory to be verifiedpublic static void forceExit(ExitCode code)
code
- the exit code to be returned upon shutdownCopyright © 2016–2019 AdroitLogic. All rights reserved.