/** * Whether the specified module is enabled. * * @param moduleName The name of the module. * @return Whether the module is enabled. */ public boolean isModuleEnabled(String moduleName) { if (this.config != null) { for (DeploymentModule module : this.config.getEnabledModules()) { if (module.getName().equals(moduleName)) { return true; } } } return false; }
/** * Whether the specified module is enabled. * * @param moduleName The name of the module. * @return Whether the module is enabled. */ public boolean isModuleEnabled(String moduleName) { if (this.config != null) { for (DeploymentModule module : this.config.getEnabledModules()) { if (module.getName().equals(moduleName)) { return true; } } } return false; }
public List<File> getProjectTestResourceDirectories() { ArrayList<File> testResources = new ArrayList<File>(); //the java-client requires the wsdl and schemas on the classpath. for (DeploymentModule enabledModule : getEnunciate().getConfig().getEnabledModules()) { if (enabledModule instanceof XMLDeploymentModule) { testResources.add(((XMLDeploymentModule) enabledModule).getGenerateDir()); } } return testResources; }
/** * Do the initialization logic. Loads and initializes the deployment modules. * * @return The deployment modules that were loaded and initialized. */ protected List<DeploymentModule> doInit() throws EnunciateException, IOException { if (isJavacCheck()) { invokeJavac(createTempDir(), getSourceFiles()); } if (this.config == null) { this.config = loadConfig(); } List<DeploymentModule> deploymentModules = this.config.getEnabledModules(); initModules(deploymentModules); return deploymentModules; }
for (DeploymentModule module : config.getEnabledModules()) { Validator moduleValidator = module.getValidator(); if (moduleValidator != null) {
for (DeploymentModule module : enunciate.getConfig().getEnabledModules()) { if (module instanceof XMLDeploymentModule) { XMLDeploymentModule xmlModule = (XMLDeploymentModule) module;
@Override public void process() { try { getRootModel(); EnunciateConfiguration config = this.enunciate.getConfig(); for (DeploymentModule module : config.getEnabledModules()) { debug("Invoking %s step for module %s", Enunciate.Target.GENERATE, module.getName()); module.step(Enunciate.Target.GENERATE); } } catch (TemplateException e) { process(e); } catch (IOException e) { process(e); } catch (EnunciateException e) { process(e); } catch (RuntimeException re) { process(re); } }
for (DeploymentModule module : config.getEnabledModules()) { debug("Invoking %s step for module %s", Enunciate.Target.GENERATE, module.getName());
validator.addValidator(config.getValidator()); debug("Default validator added to the chain."); for (DeploymentModule module : config.getEnabledModules()) { Validator moduleValidator = module.getValidator(); if (moduleValidator != null) {