Fix typo in ConfigFileAppListener#addProper(=>t)ySources

This commit is contained in:
Chris Beams
2014-03-11 10:27:01 +01:00
committed by Dave Syer
parent e10856fd9b
commit 4f62a7c6c2
2 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ public class ConfigFileApplicationListener implements
private void onApplicationEnvironmentPreparedEvent(
ConfigurableEnvironment environment, SpringApplication application) {
addProperySources(environment);
addPropertySources(environment);
bindToSpringApplication(environment, application);
}
@@ -145,7 +145,7 @@ public class ConfigFileApplicationListener implements
* @param environment the environment to add source to
* @see #addPostProcessors(ConfigurableApplicationContext)
*/
protected void addProperySources(ConfigurableEnvironment environment) {
protected void addPropertySources(ConfigurableEnvironment environment) {
RandomValuePropertySource.addToEnvironment(environment);
try {
PropertySource<?> defaultProperties = environment.getPropertySources()

View File

@@ -36,7 +36,7 @@ public class ConfigFileApplicationContextInitializer implements
public void initialize(final ConfigurableApplicationContext applicationContext) {
new ConfigFileApplicationListener() {
public void apply() {
addProperySources(applicationContext.getEnvironment());
addPropertySources(applicationContext.getEnvironment());
addPostProcessors(applicationContext);
}
}.apply();