Commit 64ae83b9 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish visibility in ConfigurationPropertiesBinderBuilder

parent aa9c5e6e
...@@ -44,12 +44,12 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -44,12 +44,12 @@ class ConfigurationPropertiesBinderBuilder {
/** /**
* The bean name of the configuration properties validator. * The bean name of the configuration properties validator.
*/ */
private static final String VALIDATOR_BEAN_NAME = ConfigurationPropertiesBindingPostProcessor.VALIDATOR_BEAN_NAME; static final String VALIDATOR_BEAN_NAME = ConfigurationPropertiesBindingPostProcessor.VALIDATOR_BEAN_NAME;
/** /**
* The bean name of the configuration properties conversion service. * The bean name of the configuration properties conversion service.
*/ */
private static final String CONVERSION_SERVICE_BEAN_NAME = ConfigurableApplicationContext.CONVERSION_SERVICE_BEAN_NAME; static final String CONVERSION_SERVICE_BEAN_NAME = ConfigurableApplicationContext.CONVERSION_SERVICE_BEAN_NAME;
private static final String[] VALIDATOR_CLASSES = { "javax.validation.Validator", private static final String[] VALIDATOR_CLASSES = { "javax.validation.Validator",
"javax.validation.ValidatorFactory", "javax.validation.ValidatorFactory",
...@@ -83,7 +83,7 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -83,7 +83,7 @@ class ConfigurationPropertiesBinderBuilder {
* @param conversionService the conversion service to use or {@code null} * @param conversionService the conversion service to use or {@code null}
* @return this instance * @return this instance
*/ */
public ConfigurationPropertiesBinderBuilder withConversionService( ConfigurationPropertiesBinderBuilder withConversionService(
ConversionService conversionService) { ConversionService conversionService) {
this.conversionService = conversionService; this.conversionService = conversionService;
return this; return this;
...@@ -98,7 +98,7 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -98,7 +98,7 @@ class ConfigurationPropertiesBinderBuilder {
* @param validator the validator to use or {@code null} * @param validator the validator to use or {@code null}
* @return this instance * @return this instance
*/ */
public ConfigurationPropertiesBinderBuilder withValidator(Validator validator) { ConfigurationPropertiesBinderBuilder withValidator(Validator validator) {
this.validator = validator; this.validator = validator;
return this; return this;
} }
...@@ -109,7 +109,7 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -109,7 +109,7 @@ class ConfigurationPropertiesBinderBuilder {
* @return this instance * @return this instance
* @see #withEnvironment(ConfigurableEnvironment) * @see #withEnvironment(ConfigurableEnvironment)
*/ */
public ConfigurationPropertiesBinderBuilder withPropertySources( ConfigurationPropertiesBinderBuilder withPropertySources(
Iterable<PropertySource<?>> propertySources) { Iterable<PropertySource<?>> propertySources) {
this.propertySources = propertySources; this.propertySources = propertySources;
return this; return this;
...@@ -122,7 +122,7 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -122,7 +122,7 @@ class ConfigurationPropertiesBinderBuilder {
* @return this instance * @return this instance
* @see #withPropertySources(Iterable) * @see #withPropertySources(Iterable)
*/ */
public ConfigurationPropertiesBinderBuilder withEnvironment( ConfigurationPropertiesBinderBuilder withEnvironment(
ConfigurableEnvironment environment) { ConfigurableEnvironment environment) {
return withPropertySources(environment.getPropertySources()); return withPropertySources(environment.getPropertySources());
} }
...@@ -132,7 +132,7 @@ class ConfigurationPropertiesBinderBuilder { ...@@ -132,7 +132,7 @@ class ConfigurationPropertiesBinderBuilder {
* discovering the {@link ConversionService} and {@link Validator} if necessary. * discovering the {@link ConversionService} and {@link Validator} if necessary.
* @return a {@link ConfigurationPropertiesBinder} * @return a {@link ConfigurationPropertiesBinder}
*/ */
public ConfigurationPropertiesBinder build() { ConfigurationPropertiesBinder build() {
return new ConfigurationPropertiesBinder(this.propertySources, return new ConfigurationPropertiesBinder(this.propertySources,
determineConversionService(), determineValidator()); determineConversionService(), determineValidator());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment