- 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
Constructors Constructor Description BindingContextControl(org.praxislive.core.ControlAddress controlAddress, org.praxislive.core.ExecutionContext context, org.praxislive.core.PacketRouter router)Create a BindingContextControl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(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 Detail
-
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 Detail
-
bind
public void bind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor)Description copied from interface:BindingContextBind adaptor to the binding for the given ControlAddress.- Specified by:
bindin interfaceBindingContext- Parameters:
address- control to bind toadaptor- to send / receive values
-
unbind
public void unbind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor)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
-
-