com.hazelcast.osgi
Class OSGiScriptEngine
java.lang.Object
com.hazelcast.osgi.OSGiScriptEngine
- All Implemented Interfaces:
- ScriptEngine
public class OSGiScriptEngine
- extends Object
- implements ScriptEngine
This adapter class is used to create / bind ScriptEngine implementations in OSGi contexts.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiScriptEngine
public OSGiScriptEngine(ScriptEngine engine,
OSGiScriptEngineFactory factory)
createBindings
public Bindings createBindings()
- Specified by:
createBindings
in interface ScriptEngine
eval
public Object eval(Reader reader,
Bindings n)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
eval
public Object eval(Reader reader,
ScriptContext context)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
eval
public Object eval(Reader reader)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
eval
public Object eval(String script,
Bindings n)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
eval
public Object eval(String script,
ScriptContext context)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
eval
public Object eval(String script)
throws ScriptException
- Specified by:
eval
in interface ScriptEngine
- Throws:
ScriptException
get
public Object get(String key)
- Specified by:
get
in interface ScriptEngine
getBindings
public Bindings getBindings(int scope)
- Specified by:
getBindings
in interface ScriptEngine
getContext
public ScriptContext getContext()
- Specified by:
getContext
in interface ScriptEngine
getFactory
public ScriptEngineFactory getFactory()
- Specified by:
getFactory
in interface ScriptEngine
put
public void put(String key,
Object value)
- Specified by:
put
in interface ScriptEngine
setBindings
public void setBindings(Bindings bindings,
int scope)
- Specified by:
setBindings
in interface ScriptEngine
setContext
public void setContext(ScriptContext context)
- Specified by:
setContext
in interface ScriptEngine
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.