Interface BinaryMsgIfaceFactory
- All Known Subinterfaces:
IfaceAwareNodeService<T,,I> IfaceAwareService<T>
- All Known Implementing Classes:
NetworkService,SpawnService
public interface BinaryMsgIfaceFactory
Given the name of an interface from a BinaryMsgSession, return an instance
of BinaryMsgIface or null. This allows a single session that implements
multiple interfaces to be wired into different parts of the application
based on the interfaces it supports.
When the underlying session disconnects the disconnect callback will be called in order to cleanup the iface instance.
- Since:
- 1.0
- Version:
- 2022-08-30
-
Method Summary
Modifier and TypeMethodDescriptiongetIface(String name, BinaryMsgSession session) Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null.
-
Method Details
-
getIface
Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null.- Parameters:
name- the name of the interfacesession- the session to back the interface- Returns:
- the iface or null
-