Examples of Loader


Examples of org.yaml.snakeyaml.Loader

      imageDesc.putListPropertyType("images", String.class);
      constructor.addTypeDescription(imageDesc);

      // Issue 855: testng is rev-locking us to snakeyaml 1.6
      // we have to use old constructor until this is fixed
      Yaml yaml = new Yaml(new Loader(constructor));
      Config config = (Config) yaml.load(yamlDescriptor);
      checkState(config != null, "missing config: class");
      checkState(config.images != null, "missing images: collection");

      Map<Image, YamlImage> backingMap = Maps.newLinkedHashMap();
View Full Code Here

Examples of org.yaml.snakeyaml.Loader

        try
        {
            final Constructor constructor = new Constructor(CliUserHelp.class);
            TypeDescription desc = new TypeDescription(CliUserHelp.class);
            desc.putListPropertyType("commands", CliCommandHelp.class);
            final Yaml yaml = new Yaml(new Loader(constructor));
            return (CliUserHelp) yaml.load(is);
        }
        finally
        {
            FileUtils.closeQuietly(is);
View Full Code Here

Examples of org.yaml.snakeyaml.Loader

            }
            org.yaml.snakeyaml.constructor.Constructor constructor = new org.yaml.snakeyaml.constructor.Constructor(Config.class);
            TypeDescription seedDesc = new TypeDescription(SeedProviderDef.class);
            seedDesc.putMapPropertyType("parameters", String.class, String.class);
            constructor.addTypeDescription(seedDesc);
            Yaml yaml = new Yaml(new Loader(constructor));
            conf = (Config)yaml.load(input);

            if (conf.commitlog_sync == null)
            {
                throw new ConfigurationException("Missing required directive CommitLogSync");
View Full Code Here

Examples of org.yaml.snakeyaml.Loader

        try
        {
            final Constructor constructor = new Constructor(CliUserHelp.class);
            TypeDescription desc = new TypeDescription(CliUserHelp.class);
            desc.putListPropertyType("commands", CliCommandHelp.class);
            final Yaml yaml = new Yaml(new Loader(constructor));
            return (CliUserHelp) yaml.load(is);
        }
        finally
        {
            FileUtils.closeQuietly(is);
View Full Code Here

Examples of org.zkoss.util.resource.Loader

    ResourceCache cache = (ResourceCache)wapp.getAttribute(ATTR_PAGE_CACHE);
    if (cache == null) {
      synchronized (PageDefinitions.class) {
        cache = (ResourceCache)wapp.getAttribute(ATTR_PAGE_CACHE);
        if (cache == null) {
          Loader loader = null;
          final String clsnm = Library.getProperty("org.zkoss.zk.ui.metainfo.page.Loader.class");
          if (clsnm != null) {
            try {
              final Object o = Classes.newInstanceByThread(clsnm,
                new Class[] {WebApp.class},
View Full Code Here

Examples of webit.script.loaders.Loader

     * @return boolean
     * @since 1.4.1
     */
    public boolean exists(final String resourceName) {
        final String normalizedName;
        final Loader loader;
        if ((normalizedName = (loader = this.resourceLoader).normalize(resourceName)) != null) {
            return loader.get(normalizedName).exists();
        }
        return false;
    }
View Full Code Here

Examples of weka.gui.beans.Loader

    StringBuffer buffer = new StringBuffer();
    buffer.append("------------------------\n");
    buffer.append(" LOADERS INFO       \n");
    buffer.append("------------------------\n");
    for(int i = 0; i < loaders.size(); i++) {
      Loader loader = (Loader)loaders.get(i);
      buffer.append(getLoderDesc(loader));
      buffer.append("------------------------\n");
    }
    return buffer.toString();
  }
View Full Code Here

Examples of zephyropen.util.Loader

    updateMenu();
  }
 
  /** */
  public void replay(){
    new Loader("zephyropen.device.beamscan.ReplayGUI","none");
    Utils.delay(1000);
    System.exit(0);
  }
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.