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
FieldsModifier and TypeFieldDescriptionstatic final Consumer<TypeHint.Builder>ATypeHintcustomizer suitable for an annotation. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterAnnotation(RuntimeHints hints, Class<?> annotationType) Register the necessary hints so that the specified annotation is visible at runtime. 
- 
Field Details
- 
ANNOTATION_HINT
ATypeHintcustomizer 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- theRuntimeHintsinstance to useannotationType- the annotation type- See Also:
 
 
 -