Browse Source

Polishing

pull/29492/head
Sam Brannen 3 years ago
parent
commit
1b61217705
  1. 17
      spring-core/src/main/java/org/springframework/aot/hint/annotation/RegisterReflectionForBinding.java
  2. 1
      spring-core/src/main/java/org/springframework/aot/hint/annotation/RegisterReflectionForBindingProcessor.java

17
spring-core/src/main/java/org/springframework/aot/hint/annotation/RegisterReflectionForBinding.java

@ -26,13 +26,13 @@ import org.springframework.core.annotation.AliasFor; @@ -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; @@ -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; @@ -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")

1
spring-core/src/main/java/org/springframework/aot/hint/annotation/RegisterReflectionForBindingProcessor.java

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

Loading…
Cancel
Save