Examples of Config


Examples of com.flaptor.util.Config

   */
  public BatchIndexManager(IndexDescriptor indexDescriptor, File indexDirectory) {
        index = Index.createIndex(indexDirectory);
        index.setIndexDescriptor(indexDescriptor);
        writer= index.getWriter();
        Config config = Config.getConfig("indexer.properties");
    docIdName = config.getString("docIdName");
  }
View Full Code Here

Examples of com.github.timurstrekalov.saga.core.cfg.Config

            final String includes = line.getOptionValue(includeOpt.getLongOpt());
            final String excludes = line.getOptionValue(excludeOpt.getLongOpt());
            final File outputDir = new File(line.getOptionValue(outputDirOpt.getLongOpt()));

            final CoverageGenerator gen = CoverageGeneratorFactory.newInstance(baseDir, outputDir);
            final Config config = gen.getConfig();
            config.setIncludes(includes);
            config.setExcludes(excludes);

            if (line.hasOption(outputInstrumentedFilesOpt.getLongOpt())) {
                config.setOutputInstrumentedFiles(true);
            }

            config.setNoInstrumentPatterns(line.getOptionValues(noInstrumentPatternOpt.getLongOpt()));
            config.setSourcesToPreload(line.getOptionValue(sourcesToPreloadOpt.getLongOpt()));
            config.setOutputStrategy(line.getOptionValue(outputStrategyOpt.getLongOpt()));

            final String threadCount = line.getOptionValue(threadCountOpt.getLongOpt());
            if (threadCount != null) {
                try {
                    config.setThreadCount(Integer.parseInt(threadCount));
                } catch (final Exception e) {
                    System.err.println("Invalid thread count");
                    printHelpAndExit(options);
                }
            }

            if (line.hasOption(includeInlineScriptsOpt.getLongOpt())) {
                config.setIncludeInlineScripts(true);
            }

            final String backgroundJavaScriptTimeout = line.getOptionValue(backgroundJavaScriptTimeoutOpt.getLongOpt());
            if (backgroundJavaScriptTimeout != null) {
                try {
                    config.setBackgroundJavaScriptTimeout(Long.valueOf(backgroundJavaScriptTimeout));
                } catch (final Exception e) {
                    System.err.println("Invalid timeout");
                    printHelpAndExit(options);
                }
            }

            config.setBrowserVersion(line.getOptionValue(browserVersionOpt.getLongOpt()));
            config.setReportFormats(line.getOptionValue(reportFormatsOpt.getLongOpt()));
            config.setSortBy(line.getOptionValue(sortByOpt.getLongOpt()));
            config.setOrder(line.getOptionValue(orderOpt.getLongOpt()));

            logger.debug("Configured the coverage generator, running");

            gen.instrumentAndGenerateReports();
        } catch (final MissingOptionException e) {
View Full Code Here

Examples of com.google.code.ckJsfEditor.Config

public class EditorTest {
    private Config config;
    private String editorContents;

    public EditorTest() {
        config = new Config().toolbar(Toolbar.TOOLBAR_FULL).customConfig("");
    }
View Full Code Here

Examples of com.google.code.kaptcha.util.Config

    public KaptchaProducerImpl(Map<String, String> configuration)
    {
        producer = new DefaultKaptcha();

        Config config = new Config(toProperties(configuration));

        producer.setConfig(config);

        height = config.getHeight();
        width = config.getWidth();
    }
View Full Code Here

Examples of com.groupon.jenkins.buildtype.util.config.Config

import static com.groupon.jenkins.buildtype.dockerimage.DockerCommandBuilder.dockerCommand;

public class DockerImageBuildConfiguration extends DockerBuildConfiguration {

    public DockerImageBuildConfiguration(Map config, String buildId, ShellCommands checkoutCommands) {
       super( new Config(config, "image", StringValue.class, "run_params", StringValue.class, "links", ListValue.class ,"command", ListOrMapOrString.class) ,
               buildId,
           checkoutCommands);
    }
View Full Code Here

Examples of com.hazelcast.config.Config

    private String primaryDomain;

    public void init() throws ClusteringFault {
        MemberUtils.init(parameters, configurationContext);

        primaryHazelcastConfig = new Config();
        setHazelcastProperties();
//        new LoginModuleConfig().
//        primaryHazelcastConfig.getSecurityConfig().addMemberLoginModuleConfig(new UsernamePasswordCredentials());

        Parameter managementCenterURL = getParameter(HazelcastConstants.MGT_CENTER_URL);
View Full Code Here

Examples of com.ibs.academic.models.Config

        setUpdateItem(false);
    }

    public void save(){
        daoConfig.save(item);
        item = new Config();
        setUpdateItem(false);
    }
View Full Code Here

Examples of com.jcloisterzone.config.Config

        game.getExpansions().add(Expansion.BASIC);
    }

    @Before
    public void initFactories() {
        Config config = new Config();
        game.setConfig(config);
        setUpGame(game);
        packFactory.setGame(game);
        packFactory.setConfig(config);
        tileFactory.setGame(game);
View Full Code Here

Examples of com.jeecms.core.entity.Config

    String hql = "from Config";
    return find(hql);
  }

  public Config findById(String id) {
    Config entity = get(id);
    return entity;
  }
View Full Code Here

Examples of com.jfinal.plugin.activerecord.Config

    for (String actionKey : actionKeys)
      actionKeySet.add(actionKey.trim());
  }
 
  public void intercept(final ActionInvocation ai) {
    Config config = Tx.getConfigWithTxConfig(ai);
    if (config == null)
      config = DbKit.getConfig();
   
    if (actionKeySet.contains(ai.getActionKey())) {
      DbPro.use(config.getName()).tx(new IAtom(){
        public boolean run() throws SQLException {
          ai.invoke();
          return true;
        }});
    }
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.