- java.lang.Object
-
- swim.dynamic.JavaHostRuntime
-
- swim.vm.js.JsHostRuntime
-
- All Implemented Interfaces:
HostRuntime
,JsRuntime
public class JsHostRuntime extends JavaHostRuntime implements JsRuntime
-
-
Constructor Summary
Constructors Constructor Description JsHostRuntime()
JsHostRuntime(JsModuleResolver moduleResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHostModule(String moduleId, HostLibrary hostLibrary)
void
addHostModule(UriPath moduleId, HostLibrary hostLibrary)
HostLibrary
getHostModule(UriPath moduleId)
Map<UriPath,HostLibrary>
hostModules()
JsModuleResolver
moduleResolver()
void
setModuleResolver(JsModuleResolver moduleResolver)
-
Methods inherited from class swim.dynamic.JavaHostRuntime
addHostLibrary, addHostPackage, addHostType, getHostLibrary, getHostPackage, getHostType, hostLibraries, hostPackages, hostTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.dynamic.HostRuntime
getHostLibrary, getHostPackage, getHostType, hostLibraries, hostPackages, hostTypes
-
-
-
-
Constructor Detail
-
JsHostRuntime
public JsHostRuntime(JsModuleResolver moduleResolver)
-
JsHostRuntime
public JsHostRuntime()
-
-
Method Detail
-
moduleResolver
public final JsModuleResolver moduleResolver()
- Specified by:
moduleResolver
in interfaceJsRuntime
-
setModuleResolver
public void setModuleResolver(JsModuleResolver moduleResolver)
- Specified by:
setModuleResolver
in interfaceJsRuntime
-
getHostModule
public final HostLibrary getHostModule(UriPath moduleId)
- Specified by:
getHostModule
in interfaceJsRuntime
-
hostModules
public final Map<UriPath,HostLibrary> hostModules()
- Specified by:
hostModules
in interfaceJsRuntime
-
addHostModule
public void addHostModule(UriPath moduleId, HostLibrary hostLibrary)
-
addHostModule
public void addHostModule(String moduleId, HostLibrary hostLibrary)
-
-