Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
  <display-name>My Web Application</display-name>

Read from external variable

Most builder examples are inline usage. To use a builder to build for an external variable, you may use:

Code Block

&nbsp; class MyConfig{

&nbsp;&nbsp;&nbsp;   static nodes = {

&nbsp; &nbsp; &nbsp;  'first entry'( key: 'value')

&nbsp; &nbsp; }

&nbsp; }

&nbsp; def result = new YourBuilder().invokeMethod('rootNode', MyConfig.nodes )

Andy Glover introduces builders through an astronomical example