Allows to combine environment properties, default application properties and external application properties. This
class can be used in the following ways:
- In the web.xml, using "contextInitializerClasses" context parameter.
- In Spring java configuration like
new PropertySourcesLoader().initialize(applicationContext)
Default resolving order (next resource overides previous):
OpenL default properties. DefaultPropertySource
Java preferences. PreferencePropertySource
Application externalized configuration. ApplicationPropertySource
Application modifiable configuration. DynamicPropertySource
Spring environment.
- OS environment variables.
System.getenv()
- Java System properties.
System.getProperties()
- JNDI attributes from
java:comp/env
- Servlet context loadProperties parameters from
ServletContext.getInitParameter(java.lang.String)
- Servlet config loadProperties parameters from
ServletConfig.getInitParameter(java.lang.String)