spring-projects / spring-projects/spring-integration
Add templating support to ObjectToStringTransformer [INT-1036]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 1.2k
- Avg merge
- 17h 48m
- Merged PRs (30d)
- 62
Description
Keith Donald opened INT-1036 and commented
As a user I'd like the ability to reference a template to use to generate the transformed String, where the model for the template would be the payload.
Example usage:
<object-to-string-transformer input-channel="newAppointmentsChannel" template="classpath:templates/new-appointment-email.st" output-channel="doctorEmailChannel" />
Code attached using foundational bits in SPR-6987.
Affects: 2.0 M2
Attachments:
- ObjectToStringTransformer.java (1.09 kB)
Issue Links:
- SPR-6987 String Template support
("depends on") - #7771 Consider Adding a Freemarker Transformer
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached ObjectToStringTransformer.java and compare the requested template behavior with the foundational String Template support in SPR-6987. Review issue #7771 for related transformer scope, then identify the current implementation and tests before defining completion criteria for template-based string transformation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100