You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing custom code, it's handy to be able to pass basic types and let something generate a CodeBlock for us. Having to deal with the attribute being null (and then writing null) is also something that should be reusable.
The text was updated successfully, but these errors were encountered:
Perhaps a ValueCodeGenerator interface with a default implementation that can load customizations from the classpath could a good first step. Looking at this need, it matches what #31427 is requesting. Devil in the details if we move this to spring-core I am sure but we'll see how far we can go.
This commit introduces ValueCodeGenerator and its Delegate interface
as a way to generate the code for a particular value. Implementations
in spring-core provides support for common value types such a String,
primitives, Collections, etc.
Additional implementations are provided for code generation of bean
definition property values.
Closesspring-projectsgh-28999
snicoll
added a commit
to snicoll/spring-framework
that referenced
this issue
Oct 23, 2023
This commit introduces ValueCodeGenerator and its Delegate interface
as a way to generate the code for a particular value. Implementations
in spring-core provides support for common value types such a String,
primitives, Collections, etc.
Additional implementations are provided for code generation of bean
definition property values.
Closesspring-projectsgh-28999
When writing custom code, it's handy to be able to pass basic types and let something generate a
CodeBlock
for us. Having to deal with the attribute beingnull
(and then writingnull
) is also something that should be reusable.The text was updated successfully, but these errors were encountered: