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
Modifier and TypeFieldDescriptionprotected static final Pattern
Catch values like ${env:PARAM_KEY:defaultValue}protected final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
loadNuxeoDefaults
(Path directory) Loads thenuxeo.defaults
andnuxeo.NUXEO_ENVIRONMENT
files.loadProperties
(Path propsFile) protected Properties
loadProperties
(Properties properties, Path propertiesFile) protected String
replaceBackslashes
(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.defaults
andnuxeo.NUXEO_ENVIRONMENT
files.This method assumes
nuxeo.defaults
exists 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
-