I'm not sure if the terminology is exactly correct here.
I have a class with some static methods that are called by several other classes in some library code written long ago.
The class with the static methods that are called by several other classes has a reference to a third party class that now has a version 2.
Is there a way I can code this class to do something like "when this static method is call, there will be something that you need to call to see which version of the library you should be using"?
Such that when I pull this library code in to a new project as a jar file, I can include something in each project that will tell my class in the library with the static methods to use a specific version.
Such that I don't need to provide a version1 and version2 of each of the classes in my library.
Am I on the right track with deferred?
A lambda function maybe?