예제 #1
0
  public void addWebApp(WebAppSingleDeployGenerator deployGenerator) {
    deployGenerator.deploy();

    _appDeploy.add(deployGenerator);

    clearCache();
  }
예제 #2
0
  /** 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);
  }
예제 #3
0
  /** Sets the war-expansion */
  public void addWarDeploy(WebAppExpandDeployGenerator webAppDeploy) throws ConfigException {
    assert webAppDeploy.getContainer() == this;

    if (!_hasWarGenerator) {
      _hasWarGenerator = true;
      _warGenerator = webAppDeploy;
    }

    _appDeploy.add(webAppDeploy);
  }
예제 #4
0
  /** 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);
    */
  }
예제 #5
0
 /** Sets the war-expansion */
 public void addDeploy(DeployGenerator<WebAppController> deploy) throws ConfigException {
   if (deploy instanceof WebAppExpandDeployGenerator)
     addWebAppDeploy((WebAppExpandDeployGenerator) deploy);
   else _appDeploy.add(deploy);
 }