org.openrdf.repository.object.script
Class EmbededScriptEngine

java.lang.Object
  extended by org.openrdf.repository.object.script.EmbededScriptEngine

public class EmbededScriptEngine
extends Object

Facade to execute EMCAScript code from URL or code block.

Author:
James Leigh

Nested Class Summary
static class EmbededScriptEngine.ScriptResult
           
 
Constructor Summary
EmbededScriptEngine(ClassLoader cl, String code, String systemId)
           
 
Method Summary
 EmbededScriptEngine assignRDFObject(String name, String uri)
           
 EmbededScriptEngine.ScriptResult call(Object msg)
           
 EmbededScriptEngine importClass(String className)
           
 EmbededScriptEngine importPackage(String pkgName)
           
static EmbededScriptEngine newInstance(ClassLoader cl, String systemId)
           
static EmbededScriptEngine newInstance(ClassLoader cl, String code, String systemId)
           
 EmbededScriptEngine returnType(Class<?> returnType)
           
 EmbededScriptEngine withThis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbededScriptEngine

public EmbededScriptEngine(ClassLoader cl,
                           String code,
                           String systemId)
Method Detail

newInstance

public static EmbededScriptEngine newInstance(ClassLoader cl,
                                              String systemId)

newInstance

public static EmbededScriptEngine newInstance(ClassLoader cl,
                                              String code,
                                              String systemId)

importClass

public EmbededScriptEngine importClass(String className)

importPackage

public EmbededScriptEngine importPackage(String pkgName)

assignRDFObject

public EmbededScriptEngine assignRDFObject(String name,
                                           String uri)

returnType

public EmbededScriptEngine returnType(Class<?> returnType)

withThis

public EmbededScriptEngine withThis()

call

public EmbededScriptEngine.ScriptResult call(Object msg)


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.