- java.lang.Object
-
- swim.dynamic.BridgeGuest
-
- swim.dynamic.api.agent.GuestAgentRoute
-
- All Implemented Interfaces:
AgentFactory<Agent>
,AgentRoute<Agent>
,GuestWrapper
public class GuestAgentRoute extends BridgeGuest implements AgentRoute<Agent>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentRouteContext
context
-
Fields inherited from class swim.dynamic.BridgeGuest
bridge, guest
-
-
Constructor Summary
Constructors Constructor Description GuestAgentRoute(Bridge bridge, Object guest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentRouteContext
agentRouteContext()
The internal context used to provide concrete implementations to mostAgentRoute
methods.Agent
createAgent(AgentContext context)
Creates an instance ofA
with internal contextcontext
.Value
id(Uri nodeUri)
UriPattern
pattern()
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.Value
props(Uri nodeUri)
String
routeName()
Returns a plane-unique identifier for this agent route.void
setAgentRouteContext(AgentRouteContext context)
Updates the internal context used to provide concrete implementations to mostAgentRoute
methods.-
Methods inherited from class swim.dynamic.BridgeGuest
bridge, unwrap
-
-
-
-
Field Detail
-
context
protected AgentRouteContext context
-
-
Method Detail
-
agentRouteContext
public AgentRouteContext agentRouteContext()
Description copied from interface:AgentRoute
The internal context used to provide concrete implementations to mostAgentRoute
methods.- Specified by:
agentRouteContext
in interfaceAgentRoute<Agent>
-
setAgentRouteContext
public void setAgentRouteContext(AgentRouteContext context)
Description copied from interface:AgentRoute
Updates the internal context used to provide concrete implementations to mostAgentRoute
methods.- Specified by:
setAgentRouteContext
in interfaceAgentRoute<Agent>
-
routeName
public String routeName()
Description copied from interface:AgentRoute
Returns a plane-unique identifier for this agent route.- Specified by:
routeName
in interfaceAgentRoute<Agent>
-
pattern
public UriPattern pattern()
Description copied from interface:AgentRoute
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.- Specified by:
pattern
in interfaceAgentRoute<Agent>
-
createAgent
public Agent createAgent(AgentContext context)
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<Agent>
-
id
public Value id(Uri nodeUri)
- Specified by:
id
in interfaceAgentFactory<Agent>
-
props
public Value props(Uri nodeUri)
- Specified by:
props
in interfaceAgentFactory<Agent>
-
-