Skip to content

Improve the Java DSL by adding static imports shortcuts to the consumers #730

@ricardozanini

Description

@ricardozanini

What would you like to be added:
To improve the user experience, we will add import static methods so one won't need to rely only on the DSL consumers anymore. Some times, shortcuts to express the workflow definition can be simpler and easier to use. For example:

.listen(l -> l.to(any -> any.with(w -> w.type("org.acme:"))))

Can be shortened to:

.listen(to(any(with(type("org.acme")))))

Or even:

.listen(to(anyWithType("org.acme"))

Why is this needed:
To improve user experience and workflow definition readability.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions