We need to integrate our application with a client's applications, and this integration will happen through WebServices.
We will have to instantiate different classes depending on which release the client is on. The thing is, I don't know how other companies do that, we were thinking about some dynamic assembly loading for code readability or manage this through pre-processor directives.
What do you suggest?
I might not understand very well your question (maybe you could add some more details) but doesn't the Factory pattern suit your needs?
EDIT : This may help too: http://martinfowler.com/articles/enterprisePatterns.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.