Claus Ibsen created CAMEL-17505:
-----------------------------------

             Summary: camel-core - DataFormatDSL that is source code generated
                 Key: CAMEL-17505
                 URL: https://issues.apache.org/jira/browse/CAMEL-17505
             Project: Camel
          Issue Type: Improvement
          Components: build system, camel-core
            Reporter: Claus Ibsen
             Fix For: 3.x


For Java DSL then we have a data format builder at
org.apache.camel.builder.DataFormatClause

This class is very verbose as for Java DSL we have overloaded methods to set 
the various options, but it can get too far like xmlSecurity with 15 methods.

Instead we should generate a builder DSL class the DataFormatClause can use.

marshal().secureXml().
   optionA(bla bla)
   optionB(bla bla)
   optionC(bla bla)
.end()

Then we can still manual add a few methods for common use-cases, so you can do

marshal().secureXml(bla bla, true).




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to