Polishing

This commit is contained in:
Sam Brannen 2022-11-12 14:30:18 +01:00
parent ffd45c0e7b
commit 1b61217705
2 changed files with 11 additions and 7 deletions

View File

@ -26,13 +26,13 @@ import org.springframework.core.annotation.AliasFor;
/**
* 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,
* 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
* 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">
* &#064;Configuration
@ -42,7 +42,8 @@ import org.springframework.core.annotation.AliasFor;
* // ...
* }</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">
* &#064;Service
@ -66,16 +67,18 @@ import org.springframework.core.annotation.AliasFor;
public @interface RegisterReflectionForBinding {
/**
* Classes for which reflection hints should be registered. At least one class must specified
* either in {@code value} or {@code classes}.
* Classes for which reflection hints should be registered.
* <p>At least one class must be specified either via {@link #value} or
* {@link #classes}.
* @see #classes()
*/
@AliasFor("classes")
Class<?>[] value() default {};
/**
* Classes for which reflection hints should be registered. At least one class must specified
* either in {@code value} or {@code classes}.
* Classes for which reflection hints should be registered.
* <p>At least one class must be specified either via {@link #value} or
* {@link #classes}.
* @see #value()
*/
@AliasFor("value")

View File

@ -30,6 +30,7 @@ import org.springframework.util.Assert;
*
* @author Sebastien Deleuze
* @since 6.0
* @see RegisterReflectionForBinding @RegisterReflectionForBinding
*/
public class RegisterReflectionForBindingProcessor implements ReflectiveProcessor {