Class BindingContextControl

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

    Modifier and Type
    Method
    Description
    void
    bind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor)
    Bind adaptor to the binding for the given ControlAddress.
    void
    call(org.praxislive.core.Call call, org.praxislive.core.PacketRouter router)
     
    void
    unbind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor)
    Unbind adaptor from its binding.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 messages
      context - the execution context (required for sync clock)
      router - the router for sending all messages
  • Method Details

    • bind

      public void bind(org.praxislive.core.ControlAddress address, Binding.Adaptor adaptor)
      Description copied from interface: BindingContext
      Bind adaptor to the binding for the given ControlAddress.
      Specified by:
      bind in interface BindingContext
      Parameters:
      address - control to bind to
      adaptor - to send / receive values
    • unbind

      public void unbind(org.praxislive.core.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 interface BindingContext
      Parameters:
      address - bound control address
      adaptor - to remove
    • call

      public void call(org.praxislive.core.Call call, org.praxislive.core.PacketRouter router) throws Exception
      Specified by:
      call in interface org.praxislive.core.Control
      Throws:
      Exception