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)
ScriptingProviderInvocableScript based on the given ScriptModel with an ScriptBindingsConfigurer.EMPTY ScriptBindingsConfigurer.prepareScript in interface ScriptingProviderScriptingProvider.prepareScript(ScriptModel, ScriptBindingsConfigurer)public InvocableScript prepareScript(ScriptModel script, ScriptBindingsConfigurer bindingsConfigurer)
ScriptingProviderInvocableScript based on the given ScriptModel.
The InvocableScript wraps a dedicated ScriptEngine that was populated with the provided ScriptBindingsConfigurer
prepareScript in interface ScriptingProviderscript - the script to wrapbindingsConfigurer - populates the BindingsCopyright © 2016 JBoss by Red Hat. All rights reserved.