Package com.enonic.xp.script.event

## Class ScriptEventListenerBuilder

- java.lang.Object
- - com.enonic.xp.script.event.ScriptEventListenerBuilder

-     public final class ScriptEventListenerBuilder
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ScriptEventListenerBuilder()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScriptEventListenerBuilder` | `application​(ApplicationKey application)` |
    `ScriptEventListener` | `build()` |
    `ScriptEventListenerBuilder` | `listener​(Consumer<Object> listener)` |
    `ScriptEventListenerBuilder` | `localOnly​(boolean localOnly)` |
    `ScriptEventListenerBuilder` | `typePattern​(String pattern)` |

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

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

- - ### Constructor Detail

    - #### ScriptEventListenerBuilder

          public ScriptEventListenerBuilder()

  - ### Method Detail

    - #### application

          public ScriptEventListenerBuilder application​(ApplicationKey application)

    - #### typePattern

          public ScriptEventListenerBuilder typePattern​(String pattern)

    - #### listener

          public ScriptEventListenerBuilder listener​(Consumer<Object> listener)

    - #### localOnly

          public ScriptEventListenerBuilder localOnly​(boolean localOnly)

    - #### build

          public ScriptEventListener build()