|
|
|
|
@ -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"> |
|
|
|
|
* @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"> |
|
|
|
|
* @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") |
|
|
|
|
|