Class RuntimeHintsUtils
java.lang.Object
org.springframework.aot.hint.support.RuntimeHintsUtils
Utility methods for runtime hints support code.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Consumer<TypeHint.Builder>
ATypeHint
customizer suitable for an annotation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerAnnotation
(RuntimeHints hints, Class<?> annotationType) Register the necessary hints so that the specified annotation is visible at runtime.
-
Field Details
-
ANNOTATION_HINT
ATypeHint
customizer suitable for an annotation. Make sure that its attributes are visible.
-
-
Constructor Details
-
RuntimeHintsUtils
public RuntimeHintsUtils()
-
-
Method Details
-
registerAnnotation
Register the necessary hints so that the specified annotation is visible at runtime.If an annotation attribute aliases an attribute of another annotation, the other annotation is registered as well and a JDK proxy hint is defined so that the synthesized annotation can be resolved.
- Parameters:
hints
- theRuntimeHints
instance to useannotationType
- the annotation type- See Also:
-