Groovy Documentation

javaposse.jobdsl.dsl.helpers
[Groovy] Class AbstractContextHelper

java.lang.Object
  javaposse.jobdsl.dsl.helpers.AbstractHelper
      javaposse.jobdsl.dsl.helpers.AbstractContextHelper

abstract class AbstractContextHelper
extends AbstractHelper

Each helper has essentially two parts. First they run a closure in executeWithContext right away to build a context object. Once we have the actually root, we run again via the generateWithXmlClosure.

Parameters:
< - T >


Constructor Summary
AbstractContextHelper(java.util.List withXmlActions, JobType jobType)

 
Method Summary
java.lang.Object execute(groovy.lang.Closure closure, java.lang.Object freshContext)

Make assumption that we're creating top level xml elements

static java.lang.Object executeInContext(groovy.lang.Closure closure, Context freshContext)

WithXmlAction generateWithXmlAction(java.lang.Object context)

groovy.lang.Closure generateWithXmlClosure(java.lang.Object context)

 
Methods inherited from class AbstractHelper
execute
 

Constructor Detail

AbstractContextHelper

AbstractContextHelper(java.util.List withXmlActions, JobType jobType)


 
Method Detail

execute

java.lang.Object execute(groovy.lang.Closure closure, java.lang.Object freshContext)
Make assumption that we're creating top level xml elements
Parameters:
closure
freshContext
Returns:


executeInContext

static java.lang.Object executeInContext(groovy.lang.Closure closure, Context freshContext)


generateWithXmlAction

WithXmlAction generateWithXmlAction(java.lang.Object context)


generateWithXmlClosure

groovy.lang.Closure generateWithXmlClosure(java.lang.Object context)


 

Groovy Documentation