- java.lang.Object
-
- org.praxislive.base.BindingContextControl
-
- All Implemented Interfaces:
BindingContext
,Control
public class BindingContextControl extends Object implements 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(ControlAddress controlAddress, ExecutionContext context, PacketRouter router)
Create a BindingContextControl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(ControlAddress address, Binding.Adaptor adaptor)
Bind adaptor to the binding for the given ControlAddress.void
call(Call call, PacketRouter router)
void
unbind(ControlAddress address, Binding.Adaptor adaptor)
Unbind adaptor from its binding.
-
-
-
Constructor Detail
-
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 Detail
-
bind
public void bind(ControlAddress address, Binding.Adaptor adaptor)
Description copied from interface:BindingContext
Bind adaptor to the binding for the given ControlAddress.- Specified by:
bind
in interfaceBindingContext
- Parameters:
address
- control to bind toadaptor
- to send / receive values
-
unbind
public void unbind(ControlAddress address, Binding.Adaptor adaptor)
Description copied from interface:BindingContext
Unbind adaptor from its binding. If the adaptor is not bound to this address, the method will do nothing.- Specified by:
unbind
in interfaceBindingContext
- Parameters:
address
- bound control addressadaptor
- to remove
-
-