Contribution:
javaDSLMethodChaining
Headline
Internal DSL implementation where modifier methods return the host object.
Characteristics
An Internal DSL implementation to illustrate the pattern Method Chaining. Method Chaining is a good when working with optional arguments and when gives great possibilities to prey the IDEs auto completion. Method Chaining should be implemented using an Expression Builder. The chaining of methods is achieved by always returning the host object or another builder. Often each step the expression changes to a new type, which is called type transmogrification. Always returning a builder object introduces the finishing problem, which is solved in this implementation by the .end() method that initiated the object creation. The use of progressive interfaces, as shown in the illustration, helps introducing mandatory parameters and orders them.
Illustration
Backlinks
There are no revisions for this page.
User contributions
User edits
Syntax for editing wiki
For you are available next options:will make text bold.
will make text italic.
will make text underlined.
will make text striked.
will allow you to paste code headline into the page.
will allow you to link into the page.
will allow you to paste code with syntax highlight into the page. You will need to define used programming language.
will allow you to paste image into the page.
is list with bullets.
is list with numbers.
will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.
will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.
will allow your to insert code snippets from @worker.
Syntax for editing wiki
For you are available next options:will make text bold.
will make text italic.
will make text underlined.
will make text striked.
will allow you to paste code headline into the page.
will allow you to link into the page.
will allow you to paste code with syntax highlight into the page. You will need to define used programming language.
will allow you to paste image into the page.
is list with bullets.
is list with numbers.
will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.
will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.
will allow your to insert code snippets from @worker.