- java.lang.Object
-
- swim.vm.js.JsGuestModuleLoader
-
- All Implemented Interfaces:
JsModuleLoader
,JsModuleResolver
public class JsGuestModuleLoader extends Object implements JsModuleResolver, JsModuleLoader
-
-
Constructor Summary
Constructors Constructor Description JsGuestModuleLoader()
JsGuestModuleLoader(JsModuleResolver moduleResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JsModule
createModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource)
void
evalModule(JsModule module)
JsModule
loadModule(JsModuleSystem moduleSystem, UriPath moduleId)
org.graalvm.polyglot.Source
loadModuleSource(UriPath moduleId)
JsModuleResolver
moduleResolver()
UriPath
resolveModulePath(UriPath basePath, UriPath modulePath)
-
-
-
Constructor Detail
-
JsGuestModuleLoader
public JsGuestModuleLoader(JsModuleResolver moduleResolver)
-
JsGuestModuleLoader
public JsGuestModuleLoader()
-
-
Method Detail
-
moduleResolver
public final JsModuleResolver moduleResolver()
-
resolveModulePath
public UriPath resolveModulePath(UriPath basePath, UriPath modulePath)
- Specified by:
resolveModulePath
in interfaceJsModuleLoader
- Specified by:
resolveModulePath
in interfaceJsModuleResolver
-
loadModuleSource
public org.graalvm.polyglot.Source loadModuleSource(UriPath moduleId)
- Specified by:
loadModuleSource
in interfaceJsModuleResolver
-
loadModule
public JsModule loadModule(JsModuleSystem moduleSystem, UriPath moduleId)
- Specified by:
loadModule
in interfaceJsModuleLoader
-
createModule
protected JsModule createModule(JsModuleSystem moduleSystem, UriPath moduleId, org.graalvm.polyglot.Source moduleSource)
-
evalModule
public void evalModule(JsModule module)
- Specified by:
evalModule
in interfaceJsModuleLoader
-
-