Package com.caucho.config

Examples of com.caucho.config.Config


  }

  private WatchdogChild readConfig(WatchdogArgs args)
    throws Exception
  {
    Config config = new Config();
    // ignore since we don't want to start databases
    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


        || _webApp.getJsp().isValidateTaglibSchema()) {
      schema = getSchema();
    }

    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

    try {
      if (_isConfig)
        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

     
      BeansConfig beans = new BeansConfig(_manager, beansPath);

      beansPath.setUserPath(beansPath.getURL());

      new Config().configure(beans, beansPath, SCHEMA);

      _pendingBeans.add(beans);
    }
  }
View Full Code Here

    JarPath jar = JarPath.create(jarPath);

    try {
      MavenProject project = new MavenProject();

      new Config().configure(project, jar.lookup(key));

      Artifact artifact = project.toArtifact(jarPath);

      return artifact;
    } catch (IOException e) {
View Full Code Here

import java.io.PrintWriter;

public class Printer {
  public static void main(String []args)
  {
    Config config = new Config();
    config.setEL(false);

    if (args.length == 0) {
      System.out.println("usage: " + Printer.class.getName() + " <book.xml>");
      System.exit(1);
    }

    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

    Document document = new Document(xtpFile, null);

    try {
      //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

  throw new ConfigException(L.l("missing ra.xml for rar {0}.  .rar files require a META-INF/ra.xml file.",
              _rarPath));

      _config = new ConnectorConfig();

      new Config().configure(_config, raXml, "com/caucho/jca/jca.rnc");
    } catch (ConfigException e) {
      throw e;
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
View Full Code Here

      Path path = Vfs.lookup(realPath);

      Path toc = path.lookup("toc.xml");

      if (toc.canRead()) {
        Config config = new Config();
        config.setEL(false);

        Navigation navigation = new Navigation(this, uri, path, 0);

        navigation.setChild(child);

        try {
          config.configure(navigation, toc);

          navList.add(navigation);
        } catch (Exception e) {
          log.log(Level.FINE, e.toString(), e);
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.