java.lang.Object
swim.js.JsAgent
- All Implemented Interfaces:
Agent,GuestWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AgentContextprotected final JsBridgeprotected final Objectprotected final JsModule -
Constructor Summary
ConstructorsConstructorDescriptionJsAgent(AgentContext agentContext, JsBridge bridge, JsModule module, Object guest) -
Method Summary
Modifier and TypeMethodDescriptionfinal AgentContextReturns theAgentContextused to manage thisAgent.final JsBridgebridge()voiddidClose()Lifecycle callback invoked immediately after thisAgentcloses.voidLifecycle callback invoked immediately after thisAgentthrowserror.voiddidLoad()Lifecycle callback invoked immediately after thisAgentloads, i.e.voiddidOpen()Lifecycle callback invoked immediately after thisAgentopens, i.e.voiddidStart()Lifecycle callback invoked immediately after thisAgentstarts.voiddidStop()Lifecycle callback invoked immediately after thisAgentstops, i.e.voidLifecycle callback invoked immediately after thisAgentunloads, i.e.final JsModulemodule()final Objectunwrap()Returns the guest value that this host object wraps.voidLifecycle callback invoked immediately before thisAgentcloses.voidwillLoad()Lifecycle callback invoked immediately before thisAgentloads.voidwillOpen()Lifecycle callback invoked immediately before thisAgentopens.voidLifecycle callback invoked immediately before thisAgentstarts.voidwillStop()Lifecycle callback invoked immediately before thisAgentstops.voidLifecycle callback invoked immediately before thisAgentunloads.
-
Field Details
-
agentContext
-
bridge
-
module
-
guest
-
-
Constructor Details
-
JsAgent
-
-
Method Details
-
agentContext
Description copied from interface:AgentReturns theAgentContextused to manage thisAgent.- Specified by:
agentContextin interfaceAgent
-
bridge
-
module
-
unwrap
Description copied from interface:GuestWrapperReturns the guest value that this host object wraps.- Specified by:
unwrapin interfaceGuestWrapper
-
willOpen
public void willOpen()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentopens.//@see swim.system.TierBinding#open
-
didOpen
public void didOpen()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentopens, i.e. before it loads.//@see swim.system.TierBinding#open //@see swim.system.TierBinding#load
-
willLoad
public void willLoad()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentloads.//@see swim.system.TierBinding#load
-
didLoad
public void didLoad()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentloads, i.e. before it starts.//@see swim.system.TierBinding#load //@see swim.system.TierBinding#start
-
willStart
public void willStart()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentstarts.//@see swim.system.TierBinding#start
-
didStart
public void didStart()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentstarts.//@see swim.system.TierBinding#start
-
willStop
public void willStop()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentstops.//@see swim.system.TierBinding#stop
-
didStop
public void didStop()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentstops, i.e. before it unloads.//@see swim.system.TierBinding#stop //@see swim.system.TierBinding#unload
-
willUnload
public void willUnload()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentunloads.//@see swim.system.TierBinding#unload
- Specified by:
willUnloadin interfaceAgent
-
didUnload
public void didUnload()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentunloads, i.e. before it closes.//@see swim.system.TierBinding.unload //@see swim.system.TierBinding.close
-
willClose
public void willClose()Description copied from interface:AgentLifecycle callback invoked immediately before thisAgentcloses.//@see swim.system.TierBinding.close
-
didClose
public void didClose()Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentcloses.//@see swim.system.TierBinding.close
-
didFail
Description copied from interface:AgentLifecycle callback invoked immediately after thisAgentthrowserror.
-