Package com.caucho.config

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


          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


     
      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

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

        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

          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

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

            config.configure(_referenceDocument, ref);

            break;
          }
          catch (Exception e) {
            log.log(Level.FINE, e.toString(), e);
View Full Code Here

      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);
View Full Code Here

                                    _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

      int ch;

      YadisXrd xrd = new YadisXrd();
      Config config = new Config();

      config.configure(xrd, is);

      return xrd;
    } catch (Exception e) {
      throw new RuntimeException(e);
    } finally {
View Full Code Here

    Config.setProperty("system", System.getProperties());
    Config.setProperty("getenv", System.getenv());

    ResinConfigLibrary.configure(beanManager);

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

    if (_args.isDynamicServer()) {
      _client = bootManager.addDynamicClient(_args);
    }
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.