public class CompositeGuardingDynamicLinker extends Object implements GuardingDynamicLinker, Serializable
GuardingDynamicLinker
that delegates sequentially to a list of other guarding dynamic linkers. The first
value returned from a component linker other than null is returned. If no component linker returns an invocation,
null is returned.Constructor and Description |
---|
CompositeGuardingDynamicLinker(Iterable<? extends GuardingDynamicLinker> linkers)
Creates a new composite linker.
|
Modifier and Type | Method and Description |
---|---|
GuardedInvocation |
getGuardedInvocation(LinkRequest linkRequest,
LinkerServices linkerServices)
Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.
|
public CompositeGuardingDynamicLinker(Iterable<? extends GuardingDynamicLinker> linkers)
linkers
- a list of component linkers.public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices) throws Exception
GuardingDynamicLinker
getGuardedInvocation
in interface GuardingDynamicLinker
linkRequest
- the object describing the request for linking a particular invocationlinkerServices
- linker servicesLinkRequest.withoutRuntimeContext()
and link for that.Exception
- if the operation fails for whatever reasonCopyright © 2017 Attila Szegedi. All rights reserved.