@Override public Collection<Module> getModules(String moduleName) { // I could not care less about the modules names return getModules(); }
public ClassPathBasedModulesRegistry(ClassLoader singleCL, String classPath) throws IOException { super(null); this.cLoader = singleCL; setParentClassLoader(cLoader); StringTokenizer st = new StringTokenizer(classPath, File.pathSeparator); while (st.hasMoreTokens()) { String classPathElement = st.nextToken(); File f = new File(classPathElement); if (f.exists()) { ModuleDefinition md = new DefaultModuleDefinition(f); moduleDefs.add(md); add(md); } } // now create fake modules for (ModuleDefinition md : moduleDefs) { // they all use the same class loader since they are not really modules // and we don't run in a modular environment modules.add(new ProxyModule(this, md, cLoader)); } }
public ClassPathBasedModulesRegistry(ClassLoader singleCL, String classPath) throws IOException { super(null); this.cLoader = singleCL; setParentClassLoader(cLoader); StringTokenizer st = new StringTokenizer(classPath, File.pathSeparator); while (st.hasMoreTokens()) { String classPathElement = st.nextToken(); File f = new File(classPathElement); if (f.exists()) { ModuleDefinition md = new DefaultModuleDefinition(f); moduleDefs.add(md); add(md); } } // now create fake modules for (ModuleDefinition md : moduleDefs) { // they all use the same class loader since they are not really modules // and we don't run in a modular environment modules.add(new ProxyModule(this, md, cLoader)); } }
@Override public Collection<Module> getModules(String moduleName) { // I could not care less about the modules names return getModules(); }