Closed mlegenhausen closed 12 years ago
But the problem is that when I remove the Connection
Interface from the Device
Interface the usage is more complicated, because I have to add a line to fetch the connection when I want to connect or close the connection.
One solution I prefer is to return the Device
after the connect
was successful. That implies that the factories have to return a Connection
instead of a Device
. This will make the usage of the drivers more intuitive cause you have to connect before you use the device.
Any other suggestions?
Just confusing