Class AdditionalBinderDsl

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.jenkinsci.groovy.binder.BinderClosureScript
org.jenkinsci.test.acceptance.guice.AdditionalBinderDsl
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class AdditionalBinderDsl extends org.jenkinsci.groovy.binder.BinderClosureScript
Enhance Groovy binder DSL with additional methods.
Author:
Kohsuke Kawaguchi
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AdditionalBinderDsl(groovy.lang.Binding binding)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setProperty(String property, Object value)
     
    subworld(groovy.lang.Closure config)
    Creates another injector and bind them using the given closure.

    Methods inherited from class org.jenkinsci.groovy.binder.BinderClosureScript

    getBinder, getEnvs, getProperties, getProperty, invokeMethod, module, setBinder

    Methods inherited from class groovy.lang.Script

    evaluate, evaluate, getBinding, print, printf, printf, println, println, run, run, setBinding

    Methods inherited from class groovy.lang.GroovyObjectSupport

    getMetaClass, setMetaClass

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdditionalBinderDsl

      public AdditionalBinderDsl()
    • AdditionalBinderDsl

      public AdditionalBinderDsl(groovy.lang.Binding binding)
  • Method Details

    • subworld

      public SubWorld subworld(groovy.lang.Closure config)
      Creates another injector and bind them using the given closure.

      The newly created injector will be returned.

    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class org.jenkinsci.groovy.binder.BinderClosureScript