Class ReflectiveRuntimeHintsRegistrar
java.lang.Object
org.springframework.aot.hint.annotation.ReflectiveRuntimeHintsRegistrar
Process
@Reflective
annotated elements.- Since:
- 6.0
- Author:
- Stephane Nicoll, Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCandidate
(Class<?> type) Specify if the giventype
is a valid candidate.void
registerRuntimeHints
(RuntimeHints runtimeHints, Class<?>... types) Register the relevant runtime hints for elements that are annotated withReflective
.
-
Constructor Details
-
ReflectiveRuntimeHintsRegistrar
public ReflectiveRuntimeHintsRegistrar()
-
-
Method Details
-
registerRuntimeHints
Register the relevant runtime hints for elements that are annotated withReflective
.- Parameters:
runtimeHints
- the runtime hints instance to usetypes
- the types to process
-
isCandidate
Specify if the giventype
is a valid candidate.- Parameters:
type
- the type to inspect- Returns:
true
if the type usesReflective
in a way that is supported by this registrar- Since:
- 6.2
-