- java.lang.Object
-
- swim.linker.LinkerProxy
-
- All Implemented Interfaces:
Linker
,LinkerBinding
,LinkerContext
- Direct Known Subclasses:
ReflectionLinker
public abstract class LinkerProxy extends Object implements LinkerBinding, LinkerContext
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkerContext
linkerContext
-
Constructor Summary
Constructors Constructor Description LinkerProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Linker
injectLinker(Linker linker)
Returns aLinker
with the combined capabilities of thisLinker
and the givenlinker
.LinkerContext
linkerContext()
abstract double
linkerPriority()
Returns the relative priority of thisLinker
implementation.Plane
loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef)
Server
loadServer(ClassLoader classLoader, ServerContext serverContext, ServerDef serverDef)
void
setLinkerContext(LinkerContext linkerContext)
-
-
-
Field Detail
-
linkerContext
protected LinkerContext linkerContext
-
-
Method Detail
-
linkerContext
public final LinkerContext linkerContext()
- Specified by:
linkerContext
in interfaceLinkerBinding
-
setLinkerContext
public void setLinkerContext(LinkerContext linkerContext)
- Specified by:
setLinkerContext
in interfaceLinkerBinding
-
linkerPriority
public abstract 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
-
injectLinker
public Linker injectLinker(Linker linker)
Description copied from interface:Linker
Returns aLinker
with the combined capabilities of thisLinker
and the givenlinker
.- Specified by:
injectLinker
in interfaceLinker
-
loadServer
public Server loadServer(ClassLoader classLoader, ServerContext serverContext, ServerDef serverDef)
- Specified by:
loadServer
in interfaceLinkerContext
-
loadPlane
public Plane loadPlane(ClassLoader classLoader, PlaneContext planeContext, PlaneDef planeDef)
- Specified by:
loadPlane
in interfaceLinkerContext
-
-