Hi,
I have a project, a substantial part of which needs to vary accross 5 deployments. The elements that vary are accessed through a class that impliments an interface (Services), so that the application is expecting a class of type Services of which there are 5 variations.
Obviously I could include references to all 5 implimentations to force their inclusions into the application when it is complied, then use Spring to inject the implimentation I want in each case, but this means that each version of the application has 4 implimentations compiled into it that it will never use.
Is there any way of using Spring to load the classes themselves at runtime into the application's ApplicationDomain prior to injecting the implimentation?
Thanks.


Reply With Quote