Package com.enonic.xp.script.runtime

## Interface ScriptRuntime

-     public interface ScriptRuntime

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScriptExports` | `execute​(ResourceKey script)` |
    `CompletableFuture<ScriptExports>` | `executeAsync​(ResourceKey script)` |
    `boolean` | `hasScript​(ResourceKey script)` |
    `void` | `invalidate​(ApplicationKey key)` |
    `Object` | `toNativeObject​(ResourceKey script, Object value)` |
    `ScriptValue` | `toScriptValue​(ResourceKey script, Object value)` |

- - ### Method Detail

    - #### hasScript

          boolean hasScript​(ResourceKey script)

    - #### execute

          ScriptExports execute​(ResourceKey script)

    - #### executeAsync

          CompletableFuture<ScriptExports> executeAsync​(ResourceKey script)

    - #### toScriptValue

          ScriptValue toScriptValue​(ResourceKey script,
                                    Object value)

    - #### toNativeObject

          Object toNativeObject​(ResourceKey script,
                                Object value)

    - #### invalidate

          void invalidate​(ApplicationKey key)