I am developing my application to have several plugins that will provide various communication methods, such as Bluetooth, TCP, UDP, XMPP, etc.
At the moment, I have some of these communication methods included within the project. And I call one of these methods in a dirty way, using simple switching cases.
Can you recommend me some design patterns that I could apply here?
Thank you in advance!:)
source
share