- All Implemented Interfaces:
AgentFactory<JsAgent>
,AgentRoute<JsAgent>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JsAgentDef
protected final UriPath
protected final JsKernel
Fields inherited from class swim.api.agent.AbstractAgentRoute
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JsAgentDef
agentDef()
final UriPath
basePath()
createAgent
(AgentContext agentContext) Creates an instance ofA
with internal contextcontext
.protected JsBridge
createAgentJsBridge
(AgentContext agentContext, org.graalvm.polyglot.Context jsContext) protected org.graalvm.polyglot.Context
createAgentJsContext
(AgentContext agentContext) protected JsModuleSystem
createAgentModuleSystem
(AgentContext agentContext, org.graalvm.polyglot.Context jsContext, JsBridge jsBridge) protected org.graalvm.polyglot.Value
createGuestAgent
(AgentContext agentContext, JsBridge jsBridge, JsModule agentModule) final JsKernel
jsKernel()
protected JsModule
requireAgentModule
(AgentContext agentContext, JsModuleSystem moduleSystem) Methods inherited from class swim.api.agent.AbstractAgentRoute
agentRouteContext, pattern, props, routeName, setAgentRouteContext
-
Field Details
-
jsKernel
-
basePath
-
agentDef
-
-
Constructor Details
-
JsAgentFactory
-
-
Method Details
-
jsKernel
-
basePath
-
agentDef
-
createAgentJsContext
-
createAgentJsBridge
protected JsBridge createAgentJsBridge(AgentContext agentContext, org.graalvm.polyglot.Context jsContext) -
createAgentModuleSystem
protected JsModuleSystem createAgentModuleSystem(AgentContext agentContext, org.graalvm.polyglot.Context jsContext, JsBridge jsBridge) -
requireAgentModule
-
createGuestAgent
protected org.graalvm.polyglot.Value createGuestAgent(AgentContext agentContext, JsBridge jsBridge, JsModule agentModule) -
createAgent
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<JsAgent>
- Specified by:
createAgent
in classAbstractAgentRoute<JsAgent>
-
id
-