public class PropertiesInitializer extends 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 List<String> |
getBasePropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected String |
getConfigFileName(String suffix) |
protected List<String> |
getPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected String |
getRepoConfigLocation() |
protected String |
getTomcatConfDir() |
protected List<String> |
getTomcatConfPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected List<String> |
getTomcatContextPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected String |
getWebappName() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected boolean |
tryAddPropertySource(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources,
String filePath) |
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>protected List<String> getPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected boolean tryAddPropertySource(org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.MutablePropertySources propSources,
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 String getWebappName()
protected List<String> getBasePropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected String getRepoConfigLocation()
protected List<String> getTomcatConfPropertyLocations(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected String getTomcatConfDir()
Copyright © 2019. All rights reserved.