Package com.caucho.config

Examples of com.caucho.config.Config


    DeploymentPlan plan = new DeploymentPlan();

          InputStream planIs = in.readInputStream();

          try {
      new Config().configure(plan, planIs);
    } finally {
            planIs.close();
    }

    InputStream archiveIs = in.readInputStream();
View Full Code Here


      // jsp/10h4
      taglib.setJspVersion("2.0");
     
      if (implicitTld.canRead()) {
  Config config = new Config();
  ImplicitTld tldTaglib = new ImplicitTld();

  config.configure(tldTaglib, implicitTld);

  if (tldTaglib.getJspVersion() != null
      && tldTaglib.getJspVersion().compareTo("2.0") < 0)
    throw new ConfigException(L.l("'{0}' must have a jsp-version 2.0 or greater",
          implicitTld));
View Full Code Here

   */
  public ResinEmbed()
  {
    InputStream is = null;
    try {
      Config config = new Config();
     
      is = _resin.getClassLoader().getResourceAsStream(EMBED_CONF);

      config.configure(_resin, is);
    } catch (Exception e) {
      throw ConfigException.create(e);
    } finally {
      try {
  is.close();
View Full Code Here

    Path rootDir = getRootDirectory();

    Path xml = rootDir.lookup("META-INF/application.xml");

    if (xml.canRead())
      new Config().configureBean(appClient, xml);

    xml = rootDir.lookup("META-INF/resin-application.xml");

    if (xml.canRead())
      new Config().configureBean(appClient, xml);

    /*
     * XXX:
     config = EnterpriseApplication.parseApplicationConfig(rootDir, xml);
    */
 
View Full Code Here

    Path xml = _clientJar.lookup("META-INF/application-client.xml");

    if (! xml.canRead())
      return;

    new Config().configureBean(appClient, xml,
                               "com/caucho/server/e_app/app-client.rnc");
  }
View Full Code Here

    throws Exception
  {
    if (! xml.canRead())
      return;

    new Config().configureBean(appClient, xml);
  }
View Full Code Here

      else {
        throw new ConfigException(L.l("Required file '{0}' can not be read for import.",
                                      _path.getNativePath()));
      }

      Config config = new Config();

      config.configure(matchRule, _path);

      _isError = false;

      setMatchRule(matchRule);
    }
View Full Code Here

    // AppClientBinding binding = new AppClientBinding(this);

    // builder.setCompactSchema("com/caucho/server/e_app/app-client.rnc");

    new Config().configure(this, xml);
  }
View Full Code Here

      setMainClass(mainClass);

      Path appClient = _clientJar.lookup("META-INF/application-client.xml");

      if (appClient.canRead())
  new Config().configureBean(EntAppClient.this, appClient);
    }
View Full Code Here

    try {
      Enumeration<URL> fragments
        = _classLoader.getResources("META-INF/web-fragment.xml");

      Config config = new Config();
      config.setEL(_servletAllowEL);

      if (log.isLoggable(Level.FINER) && fragments.hasMoreElements())
        log.finer(L.l("{0} loading web-fragments", this));

      while (fragments.hasMoreElements()) {
        URL url = fragments.nextElement();

        if (log.isLoggable(Level.FINER))
          log.log(Level.FINER,
            L.l("Loading web-fragment '{0}:{1}'.", this, url));

        WebAppFragmentConfig fragmentConfig = new WebAppFragmentConfig();
        config.configure(fragmentConfig, Vfs.lookup(url.toString()));

        _webFragments.add(fragmentConfig);
      }
    } catch (IOException e) {
      if (log.isLoggable(Level.FINE))
View Full Code Here

TOP

Related Classes of com.caucho.config.Config

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.