Package com.enonic.xp.script.runtime

## Class ScriptSettings.Builder

- java.lang.Object
- - com.enonic.xp.script.runtime.ScriptSettings.Builder

- Enclosing class:
    ScriptSettings

      public static final class ScriptSettings.Builder
      extends Object

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `<T> ScriptSettings.Builder` | `binding​(Class<T> type, Supplier<T> supplier)` |
    `ScriptSettings` | `build()` |
    `ScriptSettings.Builder` | `debug​(DebugSettings debug)` |
    `ScriptSettings.Builder` | `globalVariable​(String name, Object value)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### globalVariable

          public ScriptSettings.Builder globalVariable​(String name,
                                                       Object value)

    - #### binding

          public <T> ScriptSettings.Builder binding​(Class<T> type,
                                                    Supplier<T> supplier)

    - #### debug

          public ScriptSettings.Builder debug​(DebugSettings debug)

    - #### build

          public ScriptSettings build()