/** * Initializes and loads the NarClassLoaders. This method must be called * before the rest of the methods to access the classloaders are called and * it can be safely called any number of times provided the same framework * and extension working dirs are used. * * @param frameworkWorkingDir where to find framework artifacts * @param extensionsWorkingDir where to find extension artifacts * @throws java.io.IOException if any issue occurs while exploding nar working directories. * @throws java.lang.ClassNotFoundException if unable to load class definition * @throws IllegalStateException already initialized with a given pair of * directories cannot reinitialize or use a different pair of directories. */ public void init(File frameworkWorkingDir, File extensionsWorkingDir) throws IOException, ClassNotFoundException { init(ClassLoader.getSystemClassLoader(), frameworkWorkingDir, extensionsWorkingDir); }
narClassLoaders.init(rootClassLoader, properties.getFrameworkWorkingDirectory(), properties.getExtensionsWorkingDirectory());
NarClassLoaders.getInstance().init(properties.getFrameworkWorkingDirectory(), properties.getExtensionsWorkingDirectory());
NarClassLoaders.getInstance().init(properties.getFrameworkWorkingDirectory(), properties.getExtensionsWorkingDirectory());