eclipse-uprotocol / up-java

uProtocol Language Specific Library for Java
Apache License 2.0
9 stars 14 forks source link

Add Marker Interfaces for UListener Types #93

Closed stevenhartley closed 8 months ago

stevenhartley commented 8 months ago

The following change addresses https://github.com/eclipse-uprotocol/up-spec/issues/73 by proposing we extend the UListener interface to specific types for the umessage types in lieu of new APIs. This provides the most backwards compatibility in the API while also providing flexibility for pattern matching. The publish, notification, request, and response message types have fixed listener mapping requirements so we can define these marker interfaces in core library. Huge thank you for Tamara for the idea!

stevenhartley commented 8 months ago

Closing PR, we will not use this solution