Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to call external java method in jslt during transformation, is it possible??? #278

Closed
vermaamrita opened this issue Dec 7, 2022 · 3 comments
Labels
support Users asking how to solve a specific issue

Comments

@vermaamrita
Copy link

Example
input json
{
"abc":"abc"
}

output
{
"abc": this value should come from a java method call
}

Then how do we write the jslt rule.

@vermaamrita vermaamrita changed the title I want to call external java method in jslt during trahsformation, is it possible??? I want to call external java method in jslt during transformation, is it possible??? Dec 7, 2022
@larsga larsga added the support Users asking how to solve a specific issue label Dec 7, 2022
@larsga
Copy link
Collaborator

larsga commented Dec 7, 2022

You can do this by implementing your own JSLT function in Java, and then registering it with the Processor object.

@vermaamrita
Copy link
Author

@larsga , can you explain it, better if with an small example

@larsga
Copy link
Collaborator

larsga commented Dec 9, 2022

This documentation should have what you need.

@larsga larsga closed this as completed Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Users asking how to solve a specific issue
Projects
None yet
Development

No branches or pull requests

2 participants