A
A
avadakeda2021-06-25 20:37:28
Java
avadakeda, 2021-06-25 20:37:28

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

2 answer(s)
S
sergey, 2021-06-25
kuzmin @sergueik

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

O
Orkhan, 2021-06-25
Hasanly @azerphoenix

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 question

Ask a Question

731 491 924 answers to any question