Class GraalVMRepositoryModuleSourceProvider
java.lang.Object
org.eclipse.dirigible.engine.js.graalvm.processor.GraalVMRepositoryModuleSourceProvider
- All Implemented Interfaces:
IJavascriptModuleSourceProvider
public class GraalVMRepositoryModuleSourceProvider extends Object implements IJavascriptModuleSourceProvider
The GraalVM Repository Module Source Provider.
-
Constructor Summary
Constructors Constructor Description GraalVMRepositoryModuleSourceProvider(org.eclipse.dirigible.engine.api.script.IScriptEngineExecutor executor, String root)Instantiates a new GraalVM repository module source provider. -
Method Summary
Modifier and Type Method Description StringloadSource(String module)Load source.
-
Constructor Details
-
GraalVMRepositoryModuleSourceProvider
public GraalVMRepositoryModuleSourceProvider(org.eclipse.dirigible.engine.api.script.IScriptEngineExecutor executor, String root)Instantiates a new GraalVM repository module source provider.- Parameters:
executor- the executorroot- the root
-
-
Method Details
-
loadSource
Load source.- Specified by:
loadSourcein interfaceIJavascriptModuleSourceProvider- Parameters:
module- the module- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.URISyntaxException- the URI syntax exception
-