- 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 UriPathbasePath()protected org.graalvm.polyglot.ValuecreateGuestPlane(PlaneContext planeContext, JsBridge jsBridge, JsModule planeModule)JsPlanecreatePlane(PlaneContext planeContext)protected JsBridgecreatePlaneJsBridge(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext)protected org.graalvm.polyglot.ContextcreatePlaneJsContext(PlaneContext planeContext)protected JsModuleSystemcreatePlaneModuleSystem(PlaneContext planeContext, org.graalvm.polyglot.Context jsContext, JsBridge jsBridge)JsKerneljsKernel()JsPlaneDefplaneDef()protected JsModulerequirePlaneModule(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:
createPlanein interfacePlaneFactory<JsPlane>
-
-