public final class StandardScriptEngineManager extends ScriptEngineManager
ScriptEngineManager, this is augmented to support
a publish/subscribe (observer) pattern for propagating configuration changes to individual language implementations
and other listeners. This is used to adjust sandboxing and thread pool implementations in response to application
configuration changes.| Modifier and Type | Class and Description |
|---|---|
static interface |
StandardScriptEngineManager.ConfigurationListener
Observer pattern interface for listening to changes in the script engine configuration.
|
| Constructor and Description |
|---|
StandardScriptEngineManager()
Constructs and configures the engine manager.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addConfigurationListener(StandardScriptEngineManager.ConfigurationListener listener)
Adds an observer to be called whenever the current script engine configuration changes.
|
ScriptEngineConfiguration |
getConfiguration()
Get the current script engine configuration in use for evaluating scripts.
|
boolean |
removeConfigurationListener(StandardScriptEngineManager.ConfigurationListener listener)
Removes a configuration listener from the list of active subscribers.
|
void |
setConfiguration(ScriptEngineConfiguration newConfiguration)
Sets the configuration to use when evaluating any scripts.
|
get, getBindings, getEngineByExtension, getEngineByMimeType, getEngineByName, getEngineFactories, put, registerEngineExtension, registerEngineMimeType, registerEngineName, setBindings@Inject public StandardScriptEngineManager()
public void setConfiguration(ScriptEngineConfiguration newConfiguration)
newConfiguration - the new configuration to use.public ScriptEngineConfiguration getConfiguration()
setConfiguration(ScriptEngineConfiguration) always 'happen-before' any subsequent calls to this method.public boolean addConfigurationListener(StandardScriptEngineManager.ConfigurationListener listener)
listener - the configuration listener to register.public boolean removeConfigurationListener(StandardScriptEngineManager.ConfigurationListener listener)
listener - the listener to remove.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.