public void addWebApp(WebAppSingleDeployGenerator deployGenerator) { deployGenerator.deploy(); _appDeploy.add(deployGenerator); clearCache(); }
/** Adds an webApp. */ public void addWebApp(WebAppConfig config) { if (config.getURLRegexp() != null) { DeployGenerator<WebAppController> deploy = new WebAppRegexpDeployGenerator(_appDeploySpi, this, config); _appDeploy.add(deploy); clearCache(); return; } // server/10f6 /* WebAppController oldEntry = _appDeploy.findController(config.getContextPath()); if (oldEntry != null && oldEntry.getSourceType().equals("single")) { throw new ConfigException(L.l("duplicate web-app '{0}' forbidden.", config.getId())); } */ WebAppSingleDeployGenerator deployGenerator = createDeployGenerator(config); addWebApp(deployGenerator); }
/** Sets the war-expansion */ public void addWarDeploy(WebAppExpandDeployGenerator webAppDeploy) throws ConfigException { assert webAppDeploy.getContainer() == this; if (!_hasWarGenerator) { _hasWarGenerator = true; _warGenerator = webAppDeploy; } _appDeploy.add(webAppDeploy); }
/** Adds the ear-expansion */ public void addEarDeploy(EarDeployGenerator earDeploy) throws Exception { _earDeploy.add(earDeploy); // server/26cc - _appDeploy must be added first, because the // _earDeploy addition will automaticall register itself _appDeploy.add(new WebAppEarDeployGenerator(_appDeploySpi, this, earDeploy)); /* _earDeploy.add(earDeploy); */ }
/** Sets the war-expansion */ public void addDeploy(DeployGenerator<WebAppController> deploy) throws ConfigException { if (deploy instanceof WebAppExpandDeployGenerator) addWebAppDeploy((WebAppExpandDeployGenerator) deploy); else _appDeploy.add(deploy); }