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, constructor, field, 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.
org.springframework.aot.hint.BindingReflectionHintsRegistrar , @Reflective
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public Class |
| classes | back to summary |
|---|---|
| public Class Classes for which reflection hints should be registered. At least one class must be specified either via | |
| value | back to summary |
|---|---|
| public Class Alias for
| |