Package org.nuxeo.launcher.config
Class ConfigurationLoader
java.lang.Object
org.nuxeo.launcher.config.ConfigurationLoader
Class used to load the configuration for Nuxeo.
- Since:
- 11.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final PatternCatch values like ${env:PARAM_KEY:defaultValue}protected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringloadNuxeoDefaults(Path directory) Loads thenuxeo.defaultsandnuxeo.NUXEO_ENVIRONMENTfiles.loadProperties(Path propsFile) protected PropertiesloadProperties(Properties properties, Path propertiesFile) protected StringreplaceBackslashes(String value)
-
Field Details
-
ENV_VALUE_PATTERN
Catch values like ${env:PARAM_KEY:defaultValue}- Since:
- 9.1
-
environment
-
parametersMigration
-
hideDeprecationWarnings
protected final boolean hideDeprecationWarnings
-
-
Constructor Details
-
ConfigurationLoader
-
-
Method Details
-
loadNuxeoDefaults
Loads thenuxeo.defaultsandnuxeo.NUXEO_ENVIRONMENTfiles.This method assumes
nuxeo.defaultsexists and is readable.- Throws:
ConfigurationException
-
loadProperties
- Parameters:
propsFile- Properties file- Returns:
- new Properties containing trimmed keys and values read in
propsFile - Throws:
ConfigurationException
-
loadProperties
protected Properties loadProperties(Properties properties, Path propertiesFile) throws ConfigurationException - Throws:
ConfigurationException
-
getNuxeoEnvironmentConfName
- Returns:
- the nuxeo.defaults file for current
NUXEO_ENVIRONMENT
-
replaceEnvironmentVariables
-
replaceBackslashes
-