Package com.kosdev.kos.core.util.iface
Interface IfaceAwareService<T extends BinaryMsgIface>
- All Superinterfaces:
BinaryMsgIfaceFactory
TODO
- Since:
- 9
- Version:
- 9
-
Method Summary
Modifier and TypeMethodDescriptioncreateIface(BinaryMsgSession session) Return an instance of the custom iface for the service.default BinaryMsgIfacecreateIface(String name, BinaryMsgSession session) Handle iface checks and only callcreateIfacefor matching iface.Return the name of the iface for this service.
-
Method Details
-
getIfaceName
String getIfaceName()Return the name of the iface for this service.- Since:
- 9
-
createIface
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 viagetIface(). This will be called every time the adapter connects to the service.- Since:
- 9
-
createIface
Handle iface checks and only callcreateIfacefor matching iface.- Specified by:
createIfacein interfaceBinaryMsgIfaceFactory- Parameters:
name- the name of the interfacesession- the session to back the interface- Returns:
- the iface or null
- Since:
- 9
-