Answer the question
In order to leave comments, you need to log in
What are the ways to create a DSL in Java?
Actually, the subject, I don’t want to switch to Kotlin just because of this.
Answer the question
In order to leave comments, you need to log in
avadakeda I think you need to narrow down the question of what specific DSL and for what purpose you are looking for, otherwise there is too much to answer - overdofig information, and it is easy to google
As such, there is no DSL in Java.
You can probably use either Apache Camel
https://camel.apache.org/manual/latest/java-dsl.html
It uses the Fluent Builder pattern to implement the Java DSL.
Here, for spring - https://www.baeldung.com/spring-integration-java-dsl
Why switch to Kotlin just because of DSL? What tasks do you need to solve with the help of DSL
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question