- java.lang.Object
-
- swim.linker.LinkerProxy
-
- swim.linker.ReflectionLinker
-
- All Implemented Interfaces:
Linker
,LinkerBinding
,LinkerContext
public class ReflectionLinker extends LinkerProxy
-
-
Field Summary
-
Fields inherited from class swim.linker.LinkerProxy
linkerContext
-
-
Constructor Summary
Constructors Constructor Description ReflectionLinker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
linkAuthenticator(PlaneContext planeContext, Plane plane, AuthDef authDef)
protected void
linkAuthenticators(PlaneContext planeContext, PlaneDef planeDef, Plane plane)
double
linkerPriority()
Returns the relative priority of thisLinker
implementation.protected void
loadAgentType(ClassLoader classLoader, PlaneContext planeContext, Plane plane, AgentTypeDef agentTypeDef)
protected void
loadAgentTypes(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef, Plane plane)
Plane
loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef)
protected Plane
loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef, Class<? extends Plane> planeClass)
Server
loadServer(ClassLoader classLoader, ServerContext serverContext, ServerDef serverDef)
protected Server
loadServer(ServerContext serverContext, ServerDef serverDef, Class<? extends Server> serverClass)
protected void
reflectAgentTypes(PlaneContext planeContext, PlaneDef planeDef, Class<?> planeClass, Plane plane)
-
Methods inherited from class swim.linker.LinkerProxy
injectLinker, linkerContext, setLinkerContext
-
-
-
-
Method Detail
-
linkerPriority
public double linkerPriority()
Description copied from interface:Linker
Returns the relative priority of thisLinker
implementation. Linkers with greater priority instantiate planes before linkers with lower priority.- Specified by:
linkerPriority
in interfaceLinker
- Specified by:
linkerPriority
in classLinkerProxy
-
loadServer
public Server loadServer(ClassLoader classLoader, ServerContext serverContext, ServerDef serverDef)
- Specified by:
loadServer
in interfaceLinkerContext
- Overrides:
loadServer
in classLinkerProxy
-
loadServer
protected Server loadServer(ServerContext serverContext, ServerDef serverDef, Class<? extends Server> serverClass)
-
loadPlane
public Plane loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef)
- Specified by:
loadPlane
in interfaceLinkerContext
- Overrides:
loadPlane
in classLinkerProxy
-
loadPlane
protected Plane loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef, Class<? extends Plane> planeClass)
-
reflectAgentTypes
protected void reflectAgentTypes(PlaneContext planeContext, PlaneDef planeDef, Class<?> planeClass, Plane plane)
-
loadAgentTypes
protected void loadAgentTypes(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef, Plane plane)
-
loadAgentType
protected void loadAgentType(ClassLoader classLoader, PlaneContext planeContext, Plane plane, AgentTypeDef agentTypeDef)
-
linkAuthenticators
protected void linkAuthenticators(PlaneContext planeContext, PlaneDef planeDef, Plane plane)
-
linkAuthenticator
protected void linkAuthenticator(PlaneContext planeContext, Plane plane, AuthDef authDef)
-
-