-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: documentationA documentation taskA documentation task
Milestone
Description
Overview
As a followup to #35156, we decided that it would benefit users if we document how to register runtime hints for convention-based conversion performed by the ObjectToObjectConverter
.
An example can be seen in ObjectToObjectConverterRuntimeHints
.
Lines 54 to 57 in 47d9182
TypeReference sqlTimestampTypeReference = TypeReference.of("java.sql.Timestamp"); | |
reflectionHints.registerTypeIfPresent(classLoader, sqlTimestampTypeReference.getName(), hint -> hint | |
.withMethod("from", List.of(TypeReference.of(Instant.class)), ExecutableMode.INVOKE) | |
.onReachableType(sqlTimestampTypeReference)); |
The documentation should reside in the Runtime Hints section of the reference manual.
Related Issues
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: documentationA documentation taskA documentation task