Polishing
This commit is contained in:
parent
ffd45c0e7b
commit
1b61217705
|
|
@ -26,13 +26,13 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicate that the classes specified in the annotation attributes require some
|
* Indicate that the classes specified in the annotation attributes require some
|
||||||
* reflection hints for binding or reflection-based serialization purpose. For each
|
* reflection hints for binding or reflection-based serialization purposes. For each
|
||||||
* class specified, hints on constructors, fields, properties, record components,
|
* class specified, hints on constructors, fields, properties, record components,
|
||||||
* including types transitively used on properties and record components are registered.
|
* including types transitively used on properties and record components are registered.
|
||||||
* At least one class must be specified in the {@code value} or {@code classes} annotation
|
* At least one class must be specified in the {@code value} or {@code classes} annotation
|
||||||
* attributes.
|
* attributes.
|
||||||
*
|
*
|
||||||
* <p>Annotated element can be a configuration class, for example:
|
* <p>The annotated element can be a configuration class, for example:
|
||||||
*
|
*
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* @Configuration
|
* @Configuration
|
||||||
|
|
@ -42,7 +42,8 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* // ...
|
* // ...
|
||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* <p>Annotated element can also be any Spring bean class, constructor, field or method, for example:
|
* <p>The annotated element can also be any Spring bean class, constructor, field, or method.
|
||||||
|
* For example:
|
||||||
*
|
*
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* @Service
|
* @Service
|
||||||
|
|
@ -66,16 +67,18 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
public @interface RegisterReflectionForBinding {
|
public @interface RegisterReflectionForBinding {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classes for which reflection hints should be registered. At least one class must specified
|
* Classes for which reflection hints should be registered.
|
||||||
* either in {@code value} or {@code classes}.
|
* <p>At least one class must be specified either via {@link #value} or
|
||||||
|
* {@link #classes}.
|
||||||
* @see #classes()
|
* @see #classes()
|
||||||
*/
|
*/
|
||||||
@AliasFor("classes")
|
@AliasFor("classes")
|
||||||
Class<?>[] value() default {};
|
Class<?>[] value() default {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classes for which reflection hints should be registered. At least one class must specified
|
* Classes for which reflection hints should be registered.
|
||||||
* either in {@code value} or {@code classes}.
|
* <p>At least one class must be specified either via {@link #value} or
|
||||||
|
* {@link #classes}.
|
||||||
* @see #value()
|
* @see #value()
|
||||||
*/
|
*/
|
||||||
@AliasFor("value")
|
@AliasFor("value")
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import org.springframework.util.Assert;
|
||||||
*
|
*
|
||||||
* @author Sebastien Deleuze
|
* @author Sebastien Deleuze
|
||||||
* @since 6.0
|
* @since 6.0
|
||||||
|
* @see RegisterReflectionForBinding @RegisterReflectionForBinding
|
||||||
*/
|
*/
|
||||||
public class RegisterReflectionForBindingProcessor implements ReflectiveProcessor {
|
public class RegisterReflectionForBindingProcessor implements ReflectiveProcessor {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue