java.lang.Object
org.praxislive.base.BindingContextControl
- All Implemented Interfaces:
BindingContext,org.praxislive.core.Control
public class BindingContextControl
extends Object
implements org.praxislive.core.Control, BindingContext
An implementation of BindingContext based around a single Control. A
container just needs to provide an instance as a (hidden) control, and make
it available via Lookup.
-
Constructor Summary
ConstructorsConstructorDescriptionBindingContextControl(org.praxislive.core.ControlAddress controlAddress, org.praxislive.core.ExecutionContext context, org.praxislive.core.PacketRouter router) Create a BindingContextControl. -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor) Bind adaptor to the binding for the given ControlAddress.voidcall(org.praxislive.core.Call call, org.praxislive.core.PacketRouter router) voidunbind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor) Unbind adaptor from its binding.
-
Constructor Details
-
BindingContextControl
public BindingContextControl(org.praxislive.core.ControlAddress controlAddress, org.praxislive.core.ExecutionContext context, org.praxislive.core.PacketRouter router) Create a BindingContextControl.- Parameters:
controlAddress- address of the control for sending and receiving all messagescontext- the execution context (required for sync clock)router- the router for sending all messages
-
-
Method Details
-
bind
Description copied from interface:BindingContextBind adaptor to the binding for the given ControlAddress. An adaptor may only be bound to one address at a time.- Specified by:
bindin interfaceBindingContext- Parameters:
address- control to bind toadaptor- to send / receive values
-
unbind
Description copied from interface:BindingContextUnbind adaptor from its binding. If the adaptor is not bound to this address, the method will do nothing.- Specified by:
unbindin interfaceBindingContext- Parameters:
address- bound control addressadaptor- to remove
-
call
public void call(org.praxislive.core.Call call, org.praxislive.core.PacketRouter router) throws Exception - Specified by:
callin interfaceorg.praxislive.core.Control- Throws:
Exception
-