Package com.caucho.config

Examples of com.caucho.config.Config.configure()


     
      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


    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.getNativePath()));
      }

      Config config = new Config();

      config.configure(matchRule, _path);

      _isError = false;

      setMatchRule(matchRule);
    }
View Full Code Here

        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

    config.setIgnoreEnvironment(true);

    Vfs.setPwd(args.getRootDirectory());
    BootResinConfig resin = new BootResinConfig(args);

    config.configure(resin,
                     args.getResinConf(),
                     "com/caucho/server/resin/resin.rnc");

    if (_management == null)
      _management = resin.getManagement();
View Full Code Here

    }

    try {
      Config config = new Config();
      config.setEL(false);
      config.configure(taglib, is, schema);
    } catch (ConfigException e) {
      log.warning(e.toString());
      log.log(Level.FINER, e.toString(), e);

      taglib.setConfigException(e);
View Full Code Here

      Path path = Vfs.lookup(pathName);

      ContextConfig context = new ContextConfig(_injectManager, path);

      Config config = new Config();
      config.configure(context, path, SCHEMA);
    } finally {
      thread.setContextClassLoader(oldLoader);
    }
  }
View Full Code Here

        return;
      _isConfig = true;
     
      Config config = new Config();

      config.configure(_resin, Vfs.lookup(configFile));
    } catch (Exception e) {
      throw ConfigException.create(e);
    }

    if (_resin.getClusters().length == 0)
View Full Code Here

    Path xtpFile = Vfs.lookup(args[0]);
    Book book = new Book();

    try {
      config.configure(book, xtpFile);

      OutputStreamWriter osw = new OutputStreamWriter(System.out);
      PrintWriter out = new PrintWriter(osw);

      book.writeLaTeX(out);
View Full Code Here

      //org.w3c.dom.Node node = LooseToStrictHtml.looseToStrictHtml(xtpFile);

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

      config.configure(document, xtpFile);

      return document;
    } catch (Exception e) {
      System.err.println("Error configuring document (" + xtpFile + "): " + e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.