- java.lang.Object
-
- swim.js.JsPlaneFactory
-
- All Implemented Interfaces:
PlaneFactory<JsPlane>
public class JsPlaneFactory extends Object implements PlaneFactory<JsPlane>
-
-
Constructor Summary
Constructors Constructor Description JsPlaneFactory(JsKernel jsKernel, UriPath basePath, JsPlaneDef planeDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UriPath
basePath()
protected org.graalvm.polyglot.Value
createGuestPlane(PlaneContext planeContext, JsBridge jsBridge, JsModule planeModule)
JsPlane
createPlane(PlaneContext planeContext)
protected JsBridge
createPlaneJsBridge(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext)
protected org.graalvm.polyglot.Context
createPlaneJsContext(PlaneContext planeContext)
protected JsModuleSystem
createPlaneModuleSystem(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext, JsBridge jsBridge)
JsKernel
jsKernel()
JsPlaneDef
planeDef()
protected JsModule
requirePlaneModule(PlaneContext planeContext, JsModuleSystem moduleSystem)
-
-
-
Field Detail
-
jsKernel
protected final JsKernel jsKernel
-
basePath
protected final UriPath basePath
-
planeDef
protected final JsPlaneDef planeDef
-
-
Constructor Detail
-
JsPlaneFactory
public JsPlaneFactory(JsKernel jsKernel, UriPath basePath, JsPlaneDef planeDef)
-
-
Method Detail
-
jsKernel
public final JsKernel jsKernel()
-
basePath
public final UriPath basePath()
-
planeDef
public final JsPlaneDef planeDef()
-
createPlaneJsContext
protected org.graalvm.polyglot.Context createPlaneJsContext(PlaneContext planeContext)
-
createPlaneJsBridge
protected JsBridge createPlaneJsBridge(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext)
-
createPlaneModuleSystem
protected JsModuleSystem createPlaneModuleSystem(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext, JsBridge jsBridge)
-
requirePlaneModule
protected JsModule requirePlaneModule(PlaneContext planeContext, JsModuleSystem moduleSystem)
-
createGuestPlane
protected org.graalvm.polyglot.Value createGuestPlane(PlaneContext planeContext, JsBridge jsBridge, JsModule planeModule)
-
createPlane
public JsPlane createPlane(PlaneContext planeContext)
- Specified by:
createPlane
in interfacePlaneFactory<JsPlane>
-
-