Situation: I'm facing a component with old code that still uses Spring 1.2.6. The component is critical and cannot be altered. This old Spring version contains a query() method that is edited in Spring 2.x.x. In the rest of my code I want to use a more recent version of Spring (e.g. Spring 2.5.6).
Goal: I would like to specify that I this old query() method can only be used in the component, so the other code isn't bothered by this. It is possible to specifiy the classes/module where a dependency can be used?
Thanks in advance!