justinjh,
Sentence
chrisparker2000 looks the most feasible - you need to write your own class loader, the only change I can think of is something like the following lines: 1. For client containers, say client.dev.jar and client.prod.jar, rename into another extension and put them in the classpath. Rename to another extension so that the container does not load the contents of the container.
- Using a custom class loader, load content on demand based on the solution offered by chrisparker2000, placing a small facade on top of client classes, say ClientClassFactory, which based on the environment (dev / prod / anything else) will use a custom class loader to load from the client file. dev.otherext or client.prod.otherext.
source share