Examples of Export


Examples of com.google.gerrit.extensions.annotations.Export

      throw new InvalidPluginException(String.format(
          "Cannot load %s with @Export(\"%s\")",
          def.className, def.exportedAsName), err);
    }

    Export export = clazz.getAnnotation(Export.class);
    if (export == null) {
      PluginLoader.log.warn(String.format(
          "In plugin %s asm incorrectly parsed %s with @Export(\"%s\")",
          pluginName, clazz.getName(), def.exportedAsName));
      return;
    }

    if (is("org.apache.sshd.server.Command", clazz)) {
      if (sshGen != null) {
        sshGen.export(export, clazz);
      }
    } else if (is("javax.servlet.http.HttpServlet", clazz)) {
      if (httpGen != null) {
        httpGen.export(export, clazz);
        listen(clazz, clazz);
      }
    } else {
      int cnt = sysListen.size();
      listen(clazz, clazz);
      if (cnt == sysListen.size()) {
        // If no bindings were recorded, the extension isn't recognized.
        throw new InvalidPluginException(String.format(
            "Class %s with @Export(\"%s\") not supported",
            clazz.getName(), export.value()));
      }
    }
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.AllModuleReferences.Export

    assertEquals("There should be no errors", 0, countErrors(chain));
    AllModuleReferences exports = buildResult.getAllModuleReferences();
    // dumpExports(exports);

    Iterable<Export> visibleExports = exports.getVisibleExports(new File("roles/production/X"));
    Export exporteda = exports.findExportedClass("aclass", visibleExports);
    assertNotNull("Should have found exported 'aclass'", exporteda);
    Export exportedb = exports.findExportedClass("bclass", visibleExports);
    assertNotNull("Should have found exported 'bclass'", exportedb);
    Export exportedc = exports.findExportedClass("cclass", visibleExports);
    assertNull("Should not have found exported 'cclass'", exportedc);

    Iterable<String> paramsForA = exports.getParameterNames(exporteda, visibleExports);
    assertTrue("Should contain 'aparam'", Iterables.contains(paramsForA, "aparam"));
    assertEquals("Should have one parameter", 1, Iterables.size(paramsForA));
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.AllModuleReferences.Export

    options.setFileType(FileType.PUPPET_ROOT);
    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    AllModuleReferences exports = buildResult.getAllModuleReferences();

    Iterable<Export> visibleExports = exports.getVisibleExports(new File("roles/X"));
    Export exporteda = exports.findExportedClass("aclass", visibleExports);
    assertNotNull("Should have found exported 'aclass'", exporteda);
    Export exportedb = exports.findExportedClass("b::bclass", visibleExports);
    assertNotNull("Should have found exported 'bclass'", exportedb);
    Export exportedx = exports.findExportedClass("xclass", visibleExports);
    assertNotNull("Should have found exported 'xclass'", exportedx);
    Export exportedc = exports.findExportedClass("cclass", visibleExports);
    assertNull("Should not have found exported 'cclass'", exportedc);

    Iterable<String> paramsForA = exports.getParameterNames(exporteda, visibleExports);
    assertTrue("Should contain 'aparam'", Iterables.contains(paramsForA, "aparam"));
    assertEquals("Should have one parameter", 1, Iterables.size(paramsForA));
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.AllModuleReferences.Export

    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    AllModuleReferences exports = buildResult.getAllModuleReferences();
    // dumpExports(exports);

    Iterable<Export> visibleExports = exports.getVisibleExports(new File("roles/X"));
    Export exporteda = exports.findExportedClass("aclass", visibleExports);
    assertNotNull("Should have found exported 'aclass'", exporteda);
    Export exportedb = exports.findExportedClass("bclass", visibleExports);
    assertNotNull("Should have found exported 'bclass'", exportedb);
    Export exportedc = exports.findExportedClass("cclass", visibleExports);
    assertNull("Should not have found exported 'cclass'", exportedc);

    Iterable<String> paramsForA = exports.getParameterNames(exporteda, visibleExports);
    assertTrue("Should contain 'aparam'", Iterables.contains(paramsForA, "aparam"));
    assertEquals("Should have one parameter", 1, Iterables.size(paramsForA));
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.AllModuleReferences.Export

  public void githubHrefProducer() {
    Injector injector = Guice.createInjector(new DependencyGraphModule(
      GraphHrefType.GITHUB.getHrefProducerClass(), "https://github.com/puppetlabs/geppetto/master"));
    IHrefProducer producer = injector.getInstance(IHrefProducer.class);

    Export fakeExport = new Export() {

      private static final long serialVersionUID = 1L;

      @Override
      public String getDefaultValueText() {
View Full Code Here

Examples of com.tuenti.supernanny.repo.artifacts.Export

      String folder = ".";
      if (depParts.length == 4) {
        folder = depParts[3];
      }

      exports.add(new Export(repo, name, new File(folder)));
    }

    return exports;
  }
View Full Code Here

Examples of de.anomic.search.MetadataRepository.Export

        // format: 0=text, 1=html, 2=rss/xml
        System.out.println("URL EXPORT startup");
        final MetadataRepository mr = new MetadataRepository(new File(metadataPath), "text.urlmd", false, false);
        final HandleSet hs = (diffFile == null) ? null : new HandleSet(URIMetadataRow.rowdef.primaryKeyLength, URIMetadataRow.rowdef.objectOrder, new File(diffFile));
        System.out.println("URL EXPORT loaded dump, starting export");
        final Export e = mr.export(new File(export), ".*", hs, format, false);
        try {
            e.join();
        } catch (final InterruptedException e1) {
            Log.logException(e1);
        }
        System.out.println("URL EXPORT finished export, wrote " + ((hs == null) ? mr.size() : hs.size()) + " entries");
    }
View Full Code Here

Examples of erjang.Export

        // + (resolved ? "resolved" : ""));

        continue;
      }

      Export exp = field.getAnnotation(Export.class);
      if (exp != null) {
        field.setAccessible(true);
        EFun value;
        try {
          value = (EFun) field.get(null);
View Full Code Here

Examples of net.yacy.search.index.MetadataRepository.Export

        // format: 0=text, 1=html, 2=rss/xml
        System.out.println("URL EXPORT startup");
        final MetadataRepository mr = new MetadataRepository(new File(metadataPath), "text.urlmd", false, false);
        final HandleSet hs = (diffFile == null) ? null : new HandleSet(URIMetadataRow.rowdef.primaryKeyLength, URIMetadataRow.rowdef.objectOrder, new File(diffFile));
        System.out.println("URL EXPORT loaded dump, starting export");
        final Export e = mr.export(new File(export), ".*", hs, format, false);
        try {
            e.join();
        } catch (final InterruptedException e1) {
            Log.logException(e1);
        }
        System.out.println("URL EXPORT finished export, wrote " + ((hs == null) ? mr.size() : hs.size()) + " entries");
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.Export

                            if (import_ instanceof DefaultImport) {
                                i.remove();
                            }
                        }
                        for (Iterator<Export> i = contribution.getExports().iterator(); i.hasNext(); ) {
                            Export export = i.next();
                            if (export instanceof DefaultExport) {
                                i.remove();
                            }
                        }
                    }
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.