The situation is as follows: I'm using some libraries that use a specific class to load and access configuration parameters. The config loader class is implemented in one of the libraries. What I did is: to extend the config loader class so that it fits my requirements and is able to load different config sources:
public class BetterConfigLoader extends OldConfigLoader {
...
}
Now I want to make the existing libraries use my compatible BetterConfigLoader without applying changes to the libraries or without the need to recompile them. Is there a way of best practice to accomplish this?