I have a \"core\" application that is adapter to process task. Each task is implemented in an adapter load by the core to process the task.
My question is, is it possibl
Indeed:
URLClassLoader cl = new URLClassLoader(urls); Thread thread = new MyThread(); thread.setContextClassLoader(cl); thread.start();
Use Thread.currentThread().setContextClassloader() and make a new URLClassLoader with the desired classpath.
Thread.currentThread().setContextClassloader()
URLClassLoader