Package com.caucho.config

Examples of com.caucho.config.Config


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

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

          int p = uri.lastIndexOf('/');
          if (p > 0)
            uri = uri.substring(0, p + 1);

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

          navigation.setChild(navItem);

          config.configure(navigation, toc);

          if (navigation.getRootItem() != null)
            navItem.addChildren(navigation.getRootItem().getChildren());
        }
      }
View Full Code Here


      Path path = Vfs.lookup(realPath);

      Path ref = path.lookup("reference.xtp");

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

        try {
          _referenceDocument =
            new ReferenceDocument(_webApp, ref, _contextPath,
                                  uri + "reference.xtp", _encoding);

          config.configure(_referenceDocument, ref);
        }
        catch (Exception e) {
          log.log(Level.FINE, e.toString(), e);

          _referenceDocument = null;
View Full Code Here

    // server.setServerRoot(_serverRoot);

    Vfs.setPwd(getRootDirectory());

    Config config = new Config();
    // server/10hc
    // config.setResinInclude(true);

    config.configure(this, resinConf, getSchema());

    ClusterServer clusterServer = findClusterServer(_serverId);

    start();
  }
View Full Code Here

    if (_uri != null) {
      Path linkPath = _document.getRealPath(_uri);

      if (linkPath.exists() && linkPath.getPath().endsWith(".xtp")) {
        Config config = new Config();
        config.setEL(false);

        try {
          config.configure(_document, linkPath);

          if (_document.getHeader() != null)
            _fullDescription = _document.getHeader().getDescription();
          else
            _fullDescription = new Description(_document);
        } catch (NullPointerException e) {
          log.info("error configuring " + linkPath + ": " + e);
        } catch (Exception e) {
          log.info("error configuring " + linkPath + ": " + e);
        }

        if (_atocDescend) {
          Path linkRoot = linkPath.getParent();

          if (linkRoot.equals(_navigation.getRootPath().getParent()))
            return;

          Path subToc = linkPath.getParent().lookup("toc.xml");

          if (subToc.exists()) {
            _child = new Navigation(_navigation,
                                    _uri,
                                    linkRoot,
                                    _depth + 1);

            try {
              config.configure(_child, subToc);
            } catch (Exception e) {
              log.info("Failed to configure " + subToc + ": " + e);
            }
          } else {
            log.info(subToc + " does not exist!");
View Full Code Here

    if (_path.canRead()) {
      try {
  MavenProject project = new MavenProject();

  new Config().configure(project, _path);

  Artifact artifact = project.toArtifact(_path);

  for (ArtifactDependency dependency : artifact.getDependencies())  {
    loader.createArtifactManager().addDependency(dependency);
View Full Code Here

    LooseXml xml = new LooseXml();

    Document doc = xml.parseDocument(_path);

    new Config().configure(object, doc); // , schema);
  }
View Full Code Here

    if (systemConf != null) {
      try {
        Path path = Vfs.lookup(systemConf);

        Config config = new Config();

        config.configure(this, path, getSchema());
      }
      catch (Exception ex) {
        ex.printStackTrace();

        throw new RuntimeException(ex.toString());
View Full Code Here

      log.config(L.l("resin:import '{0}'", path.getNativePath()));

      Environment.addDependency(new Depend(path));

      Config config = new Config();
      // server/10hc
      // config.setResinInclude(true);

      config.configureBean(object, path, schema);
    }
  }
View Full Code Here

    if (systemConf != null) {
      try {
        Path path = Vfs.lookup(systemConf);

        Config config = new Config();

        config.configure(this, path, getSchema());
      }
      catch (Exception ex) {
        ex.printStackTrace();

        throw new RuntimeException(ex.toString());
View Full Code Here

    LooseXml xml = new LooseXml();

    Document doc = xml.parseDocument(_path);

    new Config().configure(object, doc); // , schema);
  }
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.