pull/18490/head
Madhura Bhave 5 years ago
parent 58fc337315
commit 5547a8499f

@ -901,7 +901,7 @@ The example in the previous section can be rewritten in an immutable fashion as
----
In this setup, the `@ImmutableConfigurationProperties` annotation is used to indicate that constructor binding should be used.
This means that the binder will expect to find a constructor with the parameters that you wish to have bound bind.
This means that the binder will expect to find a constructor with the parameters that you wish to have bound.
Nested classes that also require constructor binding (such as `Security` in the example above) should use the `@ConstructorBinding` annotation.

@ -50,19 +50,19 @@ import org.springframework.core.annotation.AliasFor;
public @interface ConfigurationProperties {
/**
* The name prefix of the properties that are valid to bind to this object. Synonym
* for {@link #prefix()}. A valid prefix is defined by one or more words separated
* with dots (e.g. {@code "acme.system.feature"}).
* @return the name prefix of the properties to bind
* The prefix of the properties that are valid to bind to this object. Synonym for
* {@link #prefix()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* @return the prefix of the properties to bind
*/
@AliasFor("prefix")
String value() default "";
/**
* The name prefix of the properties that are valid to bind to this object. Synonym
* for {@link #value()}. A valid prefix is defined by one or more words separated with
* The prefix of the properties that are valid to bind to this object. Synonym for
* {@link #value()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* @return the name prefix of the properties to bind
* @return the prefix of the properties to bind
*/
@AliasFor("value")
String prefix() default "";

@ -250,7 +250,7 @@ public final class ConfigurationPropertiesBean {
}
/**
* The binding method that use used for the bean.
* The binding method that is used for the bean.
*/
public enum BindMethod {

@ -40,19 +40,19 @@ import org.springframework.core.annotation.AliasFor;
public @interface ImmutableConfigurationProperties {
/**
* The name prefix of the properties that are valid to bind to this object. Synonym
* for {@link #prefix()}. A valid prefix is defined by one or more words separated
* with dots (e.g. {@code "acme.system.feature"}).
* @return the name prefix of the properties to bind
* The prefix of the properties that are valid to bind to this object. Synonym for
* {@link #prefix()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* @return the prefix of the properties to bind
*/
@AliasFor(annotation = ConfigurationProperties.class)
String value() default "";
/**
* The name prefix of the properties that are valid to bind to this object. Synonym
* for {@link #value()}. A valid prefix is defined by one or more words separated with
* The prefix of the properties that are valid to bind to this object. Synonym for
* {@link #value()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* @return the name prefix of the properties to bind
* @return the prefix of the properties to bind
*/
@AliasFor(annotation = ConfigurationProperties.class)
String prefix() default "";

@ -114,7 +114,7 @@ public final class Bindable<T> {
}
/**
* Return the constructor filter that can be used to limit the constructor that are
* Return the constructor filter that can be used to limit the constructors that are
* considered when binding.
* @return the constructor filter
* @since 2.2.0

Loading…
Cancel
Save