java.lang.Object
org.praxislive.base.BindingContextControl
- All Implemented Interfaces:
BindingContext,Control
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(ControlAddress controlAddress, ExecutionContext context, PacketRouter router) Create a BindingContextControl. -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(ControlAddress address, Binding.Adaptor adaptor) Bind adaptor to the binding for the given ControlAddress.voidcall(Call call, PacketRouter router) voidunbind(ControlAddress address, Binding.Adaptor adaptor) Unbind adaptor from its binding.
-
Constructor Details
-
BindingContextControl
public BindingContextControl(ControlAddress controlAddress, ExecutionContext context, 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.- 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
-