public class PropertiesInitializer
extends java.lang.Object
implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
| Constructor and Description |
|---|
PropertiesInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertySources(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources)
Can be overridden to add custom property sources.
|
protected java.util.List<java.lang.String> |
getBasePropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected java.lang.String |
getConfigFileName(java.lang.String suffix) |
protected java.util.List<java.lang.String> |
getPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected java.lang.String |
getRepoConfigLocation() |
protected java.lang.String |
getTomcatConfDir() |
protected java.util.List<java.lang.String> |
getTomcatConfPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected java.util.List<java.lang.String> |
getTomcatContextPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected java.lang.String |
getWebappName() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected boolean |
tryAddPropertySource(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources,
java.lang.String filePath) |
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>protected java.util.List<java.lang.String> getPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected boolean tryAddPropertySource(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources,
java.lang.String filePath)
protected void addPropertySources(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources)
applicationContext - Context to use for loadingpropSources - Where to append toprotected java.lang.String getWebappName()
protected java.lang.String getConfigFileName(java.lang.String suffix)
protected java.util.List<java.lang.String> getBasePropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected java.lang.String getRepoConfigLocation()
protected java.util.List<java.lang.String> getTomcatConfPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected java.lang.String getTomcatConfDir()
protected java.util.List<java.lang.String> getTomcatContextPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
Copyright © 2018. All Rights Reserved.