public interface CompilationHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The script is now running.
|
static int |
INSTALLED
The script is installed but not yet resolved.
|
static int |
RESOLVED
The script is resolved and is able to be started.
|
static int |
STARTING
The script is in the process of starting.
|
static int |
STOPPING
The script is in the process of stopping.
|
static int |
UNINSTALLED
The script is uninstalled and may not be used.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getParentClassLoader() |
ScriptSource |
getScriptSource() |
void |
handleException(Exception exception) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setCompiledScript(CompiledScript script) |
static final int UNINSTALLED
The UNINSTALLED state is only visible after a script is
uninstalled; the script is in an unusable state but references to the
script object may still be available and used for introspection.
The value of UNINSTALLED is 0x00000001.
static final int INSTALLED
A script is in the INSTALLED state when it has been installed in
the ScriptRegistry but is not or cannot be
resolved.
This state is visible if the script's code dependencies are not resolved.
The ScriptRegistry may attempt to resolve an INSTALLED
script's code dependencies and move the script to the RESOLVED
state.
The value of INSTALLED is 0x00000002.
static final int RESOLVED
A script is in the RESOLVED state when the Framework has
successfully resolved the script's code dependencies. Note that the
script is not active yet. A script must be put in the RESOLVED
state before it can be started. The ScriptRegistry may attempt to
resolve a script at any time.
The value of RESOLVED is 0x00000004.
static final int STARTING
A script is in the STARTING state when its
ScriptEngine.compileScript(CompilationHandler) method is active.
A script must be in this state when the script's
ScriptEngine.compileScript(CompilationHandler) is called. If the
ScriptEngine.compileScript method completes without exception,
then the script has successfully started and must move to the
ACTIVE state.
The value of STARTING is 0x00000008.
static final int STOPPING
A script is in the STOPPING state when its ACTIVE state
is active. A script must be in this state when the script's ScriptEngine#compileScript(CompilationHandler) method is called.
When the ScriptEngine.compileScript method completes the script
is stopped and must move to the RESOLVED state.
The value of STOPPING is 0x00000010.
static final int ACTIVE
A script is in the ACTIVE state when it has been successfully
started and activated.
The value of ACTIVE is 0x00000020.
ScriptSource getScriptSource()
ClassLoader getParentClassLoader()
void setClassLoader(ClassLoader classLoader)
void setCompiledScript(CompiledScript script)
void handleException(Exception exception)
Copyright © 2025 Open Identity Platform Community. All rights reserved.