Annotation Interface RegisterReflectionForBinding
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Reflective(RegisterReflectionForBindingProcessor.class)
public @interface RegisterReflectionForBinding
Indicates that the classes specified in the annotation attributes require some
 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 
value or classes annotation
 attributes.
 The annotated element can be a configuration class — for example:
 @Configuration
 @RegisterReflectionForBinding({Foo.class, Bar.class})
 public class MyConfig {
     // ...
 }
 The annotated element can be any Spring bean class or method — for example:
 @Service
 public class MyService {
     @RegisterReflectionForBinding(Baz.class)
     public void process() {
         // ...
     }
 }
 The annotated element can also be any test class that uses the Spring
 TestContext Framework to load an ApplicationContext.
- Since:
- 6.0
- Author:
- Sebastien Deleuze
- See Also:
- 
Optional Element SummaryOptional Elements