Returns the value of an attribute whose meaning may be implementation-specific.
Keys for which the value is defined in all implementations are:
- ScriptEngine.ENGINE
- ScriptEngine.ENGINE_VERSION
- ScriptEngine.NAME
- ScriptEngine.LANGUAGE
- ScriptEngine.LANGUAGE_VERSION
The values for these keys are the Strings returned by getEngineName
,
getEngineVersion
, getName
, getLanguageName
and
getLanguageVersion
respectively.
A reserved key, THREADING
, whose value describes the behavior of the engine
with respect to concurrent execution of scripts and maintenance of state is also defined.
These values for the THREADING
key are:
null
- The engine implementation is not thread safe, and cannot
be used to execute scripts concurrently on multiple threads.
"MULTITHREADED"
- The engine implementation is internally
thread-safe and scripts may execute concurrently although effects of script execution
on one thread may be visible to scripts on other threads.
"THREAD-ISOLATED"
- The implementation satisfies the requirements
of "MULTITHREADED", and also, the engine maintains independent values
for symbols in scripts executing on different threads.
"STATELESS"
- The implementation satisfies the requirements of
"THREAD-ISOLATED"
. In addition, script executions do not alter the
mappings in the Bindings
which is the engine scope of the
ScriptEngine
. In particular, the keys in the Bindings
and their associated values are the same before and after the execution of the script.
Implementations may define implementation-specific keys.
Returns:
The value for the given parameter. Returns
null
if no
value is assigned to the key.
Parameters:
-
key - The name of the parameter