Interface IfaceAwareService<T extends BinaryMsgIface>

All Superinterfaces:
BinaryMsgIfaceFactory

public interface IfaceAwareService<T extends BinaryMsgIface> extends BinaryMsgIfaceFactory
TODO
Since:
9
Version:
9
  • Method Details

    • getIfaceName

      String getIfaceName()
      Return the name of the iface for this service.
      Since:
      9
    • createIface

      T createIface(BinaryMsgSession session)
      Return an instance of the custom iface for the service. This is called when the adapter for the service connects to java. The iface returned by this method can be accessed via getIface() . This will be called every time the adapter connects to the service.
      Since:
      9
    • createIface

      default BinaryMsgIface createIface(String name, BinaryMsgSession session)
      Handle iface checks and only call createIface for matching iface.
      Specified by:
      createIface in interface BinaryMsgIfaceFactory
      Parameters:
      name - the name of the interface
      session - the session to back the interface
      Returns:
      the iface or null
      Since:
      9