diff --git a/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java b/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java index e58fd3e961c..1acc25c8662 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java +++ b/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java @@ -69,7 +69,13 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment { new PropertyPlaceholderHelper(PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, VALUE_SEPARATOR, false); + public ConversionService getConversionService() { + return this.conversionService; + } + public void setConversionService(ConversionService conversionService) { + this.conversionService = conversionService; + } public void addPropertySource(PropertySource propertySource) { propertySources.push(propertySource); diff --git a/org.springframework.core/src/main/java/org/springframework/core/env/ConfigurableEnvironment.java b/org.springframework.core/src/main/java/org/springframework/core/env/ConfigurableEnvironment.java index ea88622ced6..85fe51c4f97 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/env/ConfigurableEnvironment.java +++ b/org.springframework.core/src/main/java/org/springframework/core/env/ConfigurableEnvironment.java @@ -16,6 +16,8 @@ package org.springframework.core.env; +import org.springframework.core.convert.ConversionService; + /** * TODO SPR-7508: document * @@ -34,4 +36,7 @@ public interface ConfigurableEnvironment extends Environment, PropertySourceAggr */ void setDefaultProfiles(String... profiles); + public ConversionService getConversionService(); + + public void setConversionService(ConversionService conversionService); }