lundi 20 février 2017

Pattern for creating adaptive input layer between two layers for multilayered software

I am working on a multilayered software where I want to replace the lowest layer solution with another similar layer. This work is to be done in C++.

The problem is there is change in inputs parameter of API of new layer but good thing is that i don't have a case where upper layers are providing less parameters then what new layer is expecting. So I can write a wrapper between two layers where I can just ignore the some of unwanted inputs from upper layer before calling API of new layer. I will make sure I use method overloading so the same wrapper can also be used for new application where they don't have to pass the unwanted input.

Another problem is data type of input parameter and return values.

Are there any design patterns for these kind of problem? Any book which I can use or best practices?

I will appreciate any kind of help on this.

Aucun commentaire:

Enregistrer un commentaire