/** * Create a new enunciate configuration. The module list will be constructed * using Sun's discovery mechanism and the specified classloader. * * @param loader the classloader to use. */ public EnunciateConfiguration(ClassLoader loader) { this.modules = new TreeSet<DeploymentModule>(new DeploymentModuleComparator()); Iterator discoveredModules = discoverModules(loader); while (discoveredModules.hasNext()) { DeploymentModule discoveredModule = (DeploymentModule) discoveredModules.next(); this.modules.add(discoveredModule); } this.modules.add(new BasicAppModule()); }