public class ScriptEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
MODIFIED
The properties of a registered script have been modified.
|
static int |
REGISTERED
This script has been registered.
|
static int |
UNREGISTERING
This script is in the process of being unregistered.
|
source
Constructor and Description |
---|
ScriptEvent(int type,
ScriptRegistry reference,
ScriptName name)
Creates a new script event object.
|
Modifier and Type | Method and Description |
---|---|
ScriptEntry |
getScriptLibraryEntry()
Returns a reference to the script that had a change occur in its
lifecycle.
|
int |
getType()
Returns the type of event.
|
getSource, toString
public static final int REGISTERED
This event is synchronously delivered after the script has been registered with the Library.
public static final int MODIFIED
This event is synchronously delivered after the script properties have been modified.
public static final int UNREGISTERING
This event is synchronously delivered before the script has completed unregistering.
If a bundle is using a script that is UNREGISTERING
, the
bundle should release its use of the script when it receives this event.
If the bundle does not release its use of the script when it receives
this event, the Library will automatically release the bundle's use of
the script while completing the script unregistration operation.
public ScriptEvent(int type, ScriptRegistry reference, ScriptName name)
type
- The event type.reference
- A ScriptLibraryEntry
object to the script that
had a lifecycle change.name
- The name of the scriptpublic ScriptEntry getScriptLibraryEntry() throws ScriptException
This reference is the source of the event.
ScriptException
public int getType()
Copyright © 2025 Open Identity Platform Community. All rights reserved.