java.lang.Object
swim.js.JsAgent
- All Implemented Interfaces:
Agent
,GuestWrapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AgentContext
protected final JsBridge
protected final Object
protected final JsModule
-
Constructor Summary
ConstructorDescriptionJsAgent
(AgentContext agentContext, JsBridge bridge, JsModule module, Object guest) -
Method Summary
Modifier and TypeMethodDescriptionfinal AgentContext
Returns theAgentContext
used to manage thisAgent
.final JsBridge
bridge()
void
didClose()
Lifecycle callback invoked immediately after thisAgent
closes.void
Lifecycle callback invoked immediately after thisAgent
throwserror
.void
didLoad()
Lifecycle callback invoked immediately after thisAgent
loads, i.e.void
didOpen()
Lifecycle callback invoked immediately after thisAgent
opens, i.e.void
didStart()
Lifecycle callback invoked immediately after thisAgent
starts.void
didStop()
Lifecycle callback invoked immediately after thisAgent
stops, i.e.void
Lifecycle callback invoked immediately after thisAgent
unloads, i.e.final JsModule
module()
final Object
unwrap()
Returns the guest value that this host object wraps.void
Lifecycle callback invoked immediately before thisAgent
closes.void
willLoad()
Lifecycle callback invoked immediately before thisAgent
loads.void
willOpen()
Lifecycle callback invoked immediately before thisAgent
opens.void
Lifecycle callback invoked immediately before thisAgent
starts.void
willStop()
Lifecycle callback invoked immediately before thisAgent
stops.void
Lifecycle callback invoked immediately before thisAgent
unloads.
-
Field Details
-
agentContext
-
bridge
-
module
-
guest
-
-
Constructor Details
-
JsAgent
-
-
Method Details
-
agentContext
Description copied from interface:Agent
Returns theAgentContext
used to manage thisAgent
.- Specified by:
agentContext
in interfaceAgent
-
bridge
-
module
-
unwrap
Description copied from interface:GuestWrapper
Returns the guest value that this host object wraps.- Specified by:
unwrap
in interfaceGuestWrapper
-
willOpen
public void willOpen()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
opens.//@see swim.system.TierBinding#open
-
didOpen
public void didOpen()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
opens, i.e. before it loads.//@see swim.system.TierBinding#open //@see swim.system.TierBinding#load
-
willLoad
public void willLoad()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
loads.//@see swim.system.TierBinding#load
-
didLoad
public void didLoad()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
loads, i.e. before it starts.//@see swim.system.TierBinding#load //@see swim.system.TierBinding#start
-
willStart
public void willStart()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
starts.//@see swim.system.TierBinding#start
-
didStart
public void didStart()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
starts.//@see swim.system.TierBinding#start
-
willStop
public void willStop()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
stops.//@see swim.system.TierBinding#stop
-
didStop
public void didStop()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
stops, i.e. before it unloads.//@see swim.system.TierBinding#stop //@see swim.system.TierBinding#unload
-
willUnload
public void willUnload()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
unloads.//@see swim.system.TierBinding#unload
- Specified by:
willUnload
in interfaceAgent
-
didUnload
public void didUnload()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
unloads, i.e. before it closes.//@see swim.system.TierBinding.unload //@see swim.system.TierBinding.close
-
willClose
public void willClose()Description copied from interface:Agent
Lifecycle callback invoked immediately before thisAgent
closes.//@see swim.system.TierBinding.close
-
didClose
public void didClose()Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
closes.//@see swim.system.TierBinding.close
-
didFail
Description copied from interface:Agent
Lifecycle callback invoked immediately after thisAgent
throwserror
.
-