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. 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. 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 { public @interface ConfigurationProperties {
/** /**
* The name prefix of the properties that are valid to bind to this object. Synonym * The prefix of the properties that are valid to bind to this object. Synonym for
* for {@link #prefix()}. A valid prefix is defined by one or more words separated * {@link #prefix()}. A valid prefix is defined by one or more words separated with
* with dots (e.g. {@code "acme.system.feature"}). * 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("prefix") @AliasFor("prefix")
String value() default ""; String value() default "";
/** /**
* The name prefix of the properties that are valid to bind to this object. Synonym * The prefix of the properties that are valid to bind to this object. Synonym for
* for {@link #value()}. A valid prefix is defined by one or more words separated with * {@link #value()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}). * 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") @AliasFor("value")
String prefix() default ""; 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 { public enum BindMethod {

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

Loading…
Cancel
Save