All Methods Instance Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
OPartitionedObjectPool.PoolEntry<ScriptEngine> |
acquireDatabaseEngine(String databaseName,
String language)
Acquires a database engine from the pool.
|
void |
addAllowedPackages(Set<String> packages) |
Bindings |
bind(ScriptEngine scriptEngine,
Bindings binding,
ODatabaseDocumentInternal db,
OCommandContext iContext,
Map<Object,Object> iArgs)
Deprecated.
|
Bindings |
bindContextVariables(ScriptEngine engine,
Bindings binding,
ODatabaseDocumentInternal db,
OCommandContext iContext,
Map<Object,Object> iArgs) |
void |
close(String iDatabaseName)
Closes the pool for a database.
|
void |
closeAll() |
boolean |
existsEngine(String iLanguage) |
OCommandManager |
getCommandManager() |
ScriptEngine |
getEngine(String iLanguage) |
Map<String,OScriptFormatter> |
getFormatters()
Ask to the Script engine all the formatters
|
String |
getFunctionDefinition(OFunction iFunction) |
String |
getFunctionInvoke(OFunction iFunction,
Object[] iArgs) |
List<OScriptInjection> |
getInjections() |
String |
getLibrary(ODatabase<?> db,
String iLanguage)
Formats the library of functions for a language.
|
Iterable<String> |
getSupportedLanguages() |
Object |
handleResult(String language,
Object result,
ScriptEngine engine,
Bindings binding,
ODatabaseDocument database) |
OScriptManager |
registerEngine(String iLanguage,
ScriptEngineFactory iEngine) |
OScriptManager |
registerFormatter(String iLanguage,
OScriptFormatter iFormatterImpl) |
void |
registerInjection(OScriptInjection iInj) |
OScriptManager |
registerResultHandler(String iLanguage,
OScriptResultHandler resultHandler) |
void |
releaseDatabaseEngine(String iLanguage,
String iDatabaseName,
OPartitionedObjectPool.PoolEntry<ScriptEngine> poolEntry)
Acquires a database engine from the pool.
|
void |
removeAllowedPackages(Set<String> packages) |
String |
throwErrorMessage(ScriptException e,
String lib) |
void |
unbind(ScriptEngine scriptEngine,
Bindings binding,
OCommandContext iContext,
Map<Object,Object> iArgs)
Unbinds variables
|
void |
unregisterInjection(OScriptInjection iInj) |