Wolfgang Pleus Thoughts

[Previous entry: "Scrum Poster"] [Main Index] [Next entry: "Goto is not Evil"]

12/08/2009: "Dehydrating long running Groovy DSLs"

In my recent article about Domain Specific Languages (DSLs) published in the 12/2009 issue of Javamagazin I described how to implement DSLs using Groovy.
In the article I mentioned that dehydration (state persistence) could be added to the DSL runtime if needed to support long running processes.
I've created a Groovy script dehydration.groovy to illustrate how this could be achieved.
Basically the Groovy script is stopped by terminating the executing thread and the state is pulled out.
Later on the state is injected and the remaining part of the script is executed.
This approach can be used to process any kind of long running scripts, especially if they have to wait for external events.


Navigation

Home
Archives

Links

Pleus Consulting
RSS Reader

December 2009
SMTWTFS
  12345
6789101112
13141516171819
20212223242526
2728293031