I am facing confusion regarding which design pattern to choose.
I have a requirement where the API can connect to different source of information. Also, based on the data source its connecting to , method signatures including parameters and return types will change.
I was looking into factory pattern. But i am facing issues while creating above said method signatures.
Can any one advise what will be a better design to this scenario?
Regards
Varun
Aucun commentaire:
Enregistrer un commentaire