Closed EAGrahamJr closed 1 year ago
(I've got this - it can definitely wait for 1.4)
Brilliant - look forward to seeing something here. You might have seen I did a commit not so long ago refactoring some internal bits and pieces. I should really make use of the GitHub project board for tracking backlog / ideas...
:grinning:
There's a bit of repetitious code in the various
DeviceFactoryInterface
definitions that would benefit from consolidation. This involves mostly the "open" check and the ability to prevent duplicate devices from being created.Recommendation: create a
default registerDevice
method that wraps the actual device creation in aSupplier
so that all downstream classes do not have to check for open devices.