- java.lang.Object
-
- swim.dynamic.BridgeGuest
-
- swim.dynamic.api.agent.GuestAgentType
-
- All Implemented Interfaces:
AgentFactory<Agent>
,AgentType<Agent>
,GuestWrapper
public class GuestAgentType extends BridgeGuest implements AgentType<Agent>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentTypeContext
context
-
Fields inherited from class swim.dynamic.BridgeGuest
bridge, guest
-
-
Constructor Summary
Constructors Constructor Description GuestAgentType(Bridge bridge, Object guest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentTypeContext
agentTypeContext()
The internal context used to provide concrete implementations to mostAgentType
methods.Agent
createAgent(AgentContext context)
Creates an instance ofA
with internal contextcontext
.String
name()
TODOValue
props(Uri nodeUri)
ARecord
that maps every dynamic property innodeUri
to its value.UriPattern
route()
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.void
setAgentTypeContext(AgentTypeContext context)
Updates the internal context used to provide concrete implementations to mostAgentType
methods.Class<Agent>
type()
The Javaclass
ofA
.-
Methods inherited from class swim.dynamic.BridgeGuest
bridge, unwrap
-
-
-
-
Field Detail
-
context
protected AgentTypeContext context
-
-
Method Detail
-
agentTypeContext
public AgentTypeContext agentTypeContext()
Description copied from interface:AgentType
The internal context used to provide concrete implementations to mostAgentType
methods.- Specified by:
agentTypeContext
in interfaceAgentType<Agent>
-
setAgentTypeContext
public void setAgentTypeContext(AgentTypeContext context)
Description copied from interface:AgentType
Updates the internal context used to provide concrete implementations to mostAgentType
methods.- Specified by:
setAgentTypeContext
in interfaceAgentType<Agent>
-
route
public UriPattern route()
Description copied from interface:AgentType
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.
-
props
public Value props(Uri nodeUri)
Description copied from interface:AgentType
ARecord
that maps every dynamic property innodeUri
to its value. An empty result indicates thatnodeUri
either contains no dynamic components or does not matchAgentType.route()
.
-
createAgent
public Agent createAgent(AgentContext context)
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<Agent>
-
-