Browse Source

Remove AbstractEnvironment#getPropertyResolver

Method is obsolete now that Environment (thus AbstractEnvironment as
well) implements the ConfigurablePropertyResolver interface.
pull/7/head
Chris Beams 15 years ago
parent
commit
415057c184
  1. 4
      org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
  2. 2
      org.springframework.core/src/main/java/org/springframework/core/env/DefaultEnvironment.java

4
org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java vendored

@ -123,10 +123,6 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment { @@ -123,10 +123,6 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
return this.propertySources;
}
public ConfigurablePropertyResolver getPropertyResolver() {
return this.propertyResolver;
}
@SuppressWarnings("unchecked")
public Map<String, Object> getSystemEnvironment() {
Map<String, ?> systemEnvironment;

2
org.springframework.core/src/main/java/org/springframework/core/env/DefaultEnvironment.java vendored

@ -30,7 +30,7 @@ package org.springframework.core.env; @@ -30,7 +30,7 @@ package org.springframework.core.env;
*
* That is, if the key "xyz" is present both in the JVM system properties as well as in the
* set of environment variables for the current process, the value of key "xyz" from system properties
* will return from a call to {@code environment.getPropertyResolver().getProperty("xyz")}.
* will return from a call to {@code environment.getProperty("xyz")}.
* This ordering is chosen by default because system properties are per-JVM, while environment
* variables may be the same across many JVMs on a given system. Giving system properties
* precedence allows for overriding of environment variables on a per-JVM basis.

Loading…
Cancel
Save