I have one application which uses external APIs (JAR). These external APIs are having two versions. Depending on standard of that particular data, it has different implementation and schema, hence we have two separate dependencies: 2.2.0 and 2.0.1. Both dependencies have the same method signatures. I was thinking just to replace the APIs at run time depending on schema.
Is it possible to change the dependencies at run time?