public class DefaultScriptingProvider extends Object implements ScriptingProvider
Constructor and Description |
---|
DefaultScriptingProvider(ScriptEngineManager scriptEngineManager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InvocableScript |
prepareScript(ScriptModel script)
Returns an
InvocableScript based on the given ScriptModel with an ScriptBindingsConfigurer.EMPTY ScriptBindingsConfigurer . |
InvocableScript |
prepareScript(ScriptModel script,
ScriptBindingsConfigurer bindingsConfigurer)
Returns an
InvocableScript based on the given ScriptModel . |
public DefaultScriptingProvider(ScriptEngineManager scriptEngineManager)
public InvocableScript prepareScript(ScriptModel script)
ScriptingProvider
InvocableScript
based on the given ScriptModel
with an ScriptBindingsConfigurer.EMPTY
ScriptBindingsConfigurer
.prepareScript
in interface ScriptingProvider
ScriptingProvider.prepareScript(ScriptModel, ScriptBindingsConfigurer)
public InvocableScript prepareScript(ScriptModel script, ScriptBindingsConfigurer bindingsConfigurer)
ScriptingProvider
InvocableScript
based on the given ScriptModel
.
The InvocableScript
wraps a dedicated ScriptEngine
that was populated with the provided ScriptBindingsConfigurer
prepareScript
in interface ScriptingProvider
script
- the script to wrapbindingsConfigurer
- populates the Bindings
Copyright © 2016 JBoss by Red Hat. All rights reserved.