Examples of Generator


Examples of ar.edu.unlp.yaqc4j.annotations.Generator

      this.configuration = new Configuration(
          Arbitrary.defaultDistribution());
    }
    // collect declared generators.
    this.classGenerators = new HashMap<Class<?>, Gen<?>>();
    Generator generator = this.getClassAnnotation(Generator.class);
    if (generator != null) {
      this.addGenerator(generator);
    }
    UseGenerators useGenerators = this
        .getClassAnnotation(UseGenerators.class);
View Full Code Here

Examples of br.com.caelum.tubaina.parser.html.desktop.Generator

    File bibliographyFile = new File(inputDir, "bib.xml");
    if (bibliographyFile.exists()) {
      FileUtils.copyFileToDirectory(bibliographyFile, file);
    }

    Generator generator = parseType.getGenerator(parseType.getParser(), data);
    try {
      generator.generate(b, file);
    } catch (TubainaException e) {
      LOG.warn(e.getMessage());
    }
  }
View Full Code Here

Examples of cc.catalysts.cdoclet.generator.Generator

      e.printStackTrace();
    }
  }

  public static boolean start(RootDoc root) throws Exception {
    Generator generator = readOptions(root.options());

    ClassDoc[] docs = root.specifiedClasses();
    if (docs.length == 0) docs = root.classes();

    for (ClassDoc classDoc : docs) {
      logger.info("Processing {}", classDoc.qualifiedName());

      if (TagParser.hasClassTags(generator, classDoc)) {
        Handler handler = createHandler(generator, classDoc);
        handler.process(classDoc);
      }
    }

    generator.generate();

    return true;
  }
View Full Code Here

Examples of cfdict.generator.Generator

            Download dl = new Download(config);
            dl.process();
            Decompress dp = new Decompress(config);
            dp.process();
            Parser p = new Parser(config);
            Generator g;
            if (config.getMode().equals("INSERT"))
                g = new InsertGenerator(config, p.process());
            else
                g = new UpdateGenerator(config, p.process());           
            g.process();
           
           
           

            System.out.println("Debut de la mise a jour du fichier de configuration");
View Full Code Here

Examples of cn.edu.hfut.dmic.webcollector.generator.Generator

        for (int i = 0; i < depth; i++) {
            if (status == STOPED) {
                break;
            }
            LogUtils.getLogger().info("starting depth " + (i + 1));
            Generator generator = createGenerator();
            fetcher = createFetcher();
            fetcher = updateFetcher(fetcher);
            if (fetcher == null) {
                return;
            }
View Full Code Here

Examples of cn.org.rapid_framework.generator.Generator

//        GeneratorProperties.setProperty(GeneratorConstants.JDBC_PASSWORD, "merchant");
       
        GeneratorProperties.setProperty("basepackage", "com.alipay.mquery.common.dal.air");
        GeneratorProperties.setProperty("appName", "rapid");
       
        g = new Generator();
        g.setSourceEncoding("GBK");
        g.setOutputEncoding("GBK");
        g.setOutRootDir("./target/temp/generate_by_sql_config");
    }
View Full Code Here

Examples of com.Acrobot.ChestShop.DB.Generator

            setupDB();
        }

        if (Properties.GENERATE_STATISTICS_PAGE) {
            File htmlFolder = new File(Properties.STATISTICS_PAGE_PATH);
            scheduleTask(new Generator(htmlFolder), 300L, Properties.STATISTICS_PAGE_GENERATION_INTERVAL * 20L);
        }

        if (Properties.LOG_TO_FILE) {
            File log = loadFile("ChestShop.log");

View Full Code Here

Examples of com.colorfulsoftware.atom.Generator

      Updated updated = feedDoc.buildUpdated(null, Calendar.getInstance()
          .getTime().toString());

      Title title = feedDoc.buildTitle("test feed", null);

      Generator generator = feedDoc.getLibVersion();

      List<Author> authors = new LinkedList<Author>();
      authors.add(feedDoc.buildAuthor(feedDoc.buildName("Bill Brown"),
          null, null, null, null));
View Full Code Here

Examples of com.google.gwt.core.ext.Generator

      Class<? extends Generator> generatorClass, String typeName)
      throws UnableToCompleteException {
    String msg = "Invoking " + toString();
    logger = logger.branch(TreeLogger.DEBUG, msg, null);

    Generator generator = generators.get(generatorClass);
    if (generator == null) {
      try {
        generator = generatorClass.newInstance();
        generators.put(generatorClass, generator);
      } catch (Throwable e) {
        logger.log(TreeLogger.ERROR,
            "Unexpected error trying to instantiate Generator '"
                + generatorClass.getName() + "'", e);
        throw new UnableToCompleteException();
      }
    }

    setCurrentGenerator(generatorClass);

    long before = System.currentTimeMillis();
    PerfLogger.start("Generator '" + generator.getClass().getName()
        + "' produced '" + typeName + "'");
    try {
      String className = generator.generate(logger, this, typeName);
      long after = System.currentTimeMillis();
      if (className == null) {
        msg = "Generator returned null, so the requested type will be used as is";
      } else {
        msg = "Generator returned class '" + className + "'";
View Full Code Here

Examples of com.googlecode.concurrentlinkedhashmap.generator.Generator

  @Test(groups = "efficiency")
  @Parameters({"capacity", "passes", "generatorMultipler", "workingSetMultiplier"})
  public void benchmark(int capacity, int passes, int generatorMultipler,
      int workingSetMultiplier) {
    Generator generator = new ScrambledZipfianGenerator(generatorMultipler * capacity);
    List<List<String>> workingSets = Lists.newArrayList();
    for (int i = 1; i <= passes; i++) {
      int size = i * workingSetMultiplier * capacity;
      workingSets.add(createWorkingSet(generator, size));
    }
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.