File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Pass closure to builder Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Pass closure to builder" Watch "Pass closure to builder" New topic
Author

Pass closure to builder

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 250
I need to make a simple DSL that will control permissions.

I would like it to look something like this:



Right now the builder is attempting to build the closure, is there any way to make it pass it to the createNode method in my BuilderSupport object or it could execute it and pass the return value.


http://www.goodercode.com
SCJP 1.4
 
 
subject: Pass closure to builder
 
Threads others viewed
Builder Pattern Question
Null pointer exception probably due to synchronisation issues; problem in starting activity
Factory with generics
Navigating to TableViewController from a view
Groovy Puzzler
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture