Examples of Config


Examples of org.conventionsframework.qualifier.Config

    public Map<String, Object> getConfigMap() {
        return configMap;
    }

    private String getConfigKey(InjectionPoint ip) {
        Config config = ip.getAnnotated().getAnnotation(Config.class);
        return Assert.hasText(config.value()) ? config.value() : ip.getMember().getName();
    }
View Full Code Here

Examples of org.cspoker.ai.bots.bot.gametree.mcts.nodes.Config

    if (bot != null) return bot;
   
    for (int i = 0; i < runner.nbPlayersPerGame; i++) {
      try {
        bot = (MCTSBot) runner.getBot(i);
        Config config = bot.getConfig();
        WekaLearningModel model = (WekaLearningModel) config.getModel();
        if (model.getConfig().useOnlineLearning())
          return bot;
      } catch (Exception e) {
        bot = null;
      }
View Full Code Here

Examples of org.douyu.core.Config

      + "org.douyu.plugins.velocity.VelocityViewManagerProvider=vm;"
      + "org.douyu.plugins.freemarker.FreeMarkerViewManagerProvider=ftl;";

  @Override
  public void init(FilterConfig filterConfig) throws ServletException {
    config = new Config();
    servletContext = filterConfig.getServletContext();
    config.appName = servletContext.getContextPath();
    config.javacEncoding = filterConfig.getInitParameter("javacEncoding");
    config.srcDir = filterConfig.getInitParameter("srcDir");
    config.classesDir = filterConfig.getInitParameter("classesDir");
View Full Code Here

Examples of org.dynjs.Config

    }

    public DynJSRuntime(Vertx vertx, NodynConfig config, boolean controlLifeCycle) {
        super(config, vertx, controlLifeCycle);

        Config dynjsConfig = new Config(config.getClassLoader());
        dynjsConfig.setExposeDebugAs("v8debug");

        this.runtime = new DynJS(dynjsConfig);

        this.runner = this.runtime.newRunner(config.getDebug());
        if (config.getDebug()) {
View Full Code Here

Examples of org.eclipse.jgit.lib.Config

          JGitText.get().cannotPullOnARepoWithState, repo
              .getRepositoryState().name()));

    // get the configured remote for the currently checked out branch
    // stored in configuration key branch.<branch name>.remote
    Config repoConfig = repo.getConfig();
    String remote = repoConfig.getString(
        ConfigConstants.CONFIG_BRANCH_SECTION, branchName,
        ConfigConstants.CONFIG_KEY_REMOTE);
    if (remote == null)
      // fall back to default remote
      remote = Constants.DEFAULT_REMOTE_NAME;

    // get the name of the branch in the remote repository
    // stored in configuration key branch.<branch name>.merge
    String remoteBranchName = repoConfig.getString(
        ConfigConstants.CONFIG_BRANCH_SECTION, branchName,
        ConfigConstants.CONFIG_KEY_MERGE);
    // check if the branch is configured for pull-rebase
    boolean doRebase = repoConfig.getBoolean(
        ConfigConstants.CONFIG_BRANCH_SECTION, branchName,
        ConfigConstants.CONFIG_KEY_REBASE, false);

    if (remoteBranchName == null) {
      String missingKey = ConfigConstants.CONFIG_BRANCH_SECTION + DOT
          + branchName + DOT + ConfigConstants.CONFIG_KEY_MERGE;
      throw new InvalidConfigurationException(MessageFormat.format(
          JGitText.get().missingConfigurationForKey, missingKey));
    }

    final boolean isRemote = !remote.equals(".");
    String remoteUri;
    FetchResult fetchRes;
    if (isRemote) {
      remoteUri = repoConfig.getString(
          ConfigConstants.CONFIG_REMOTE_SECTION, remote,
          ConfigConstants.CONFIG_KEY_URL);
      if (remoteUri == null) {
        String missingKey = ConfigConstants.CONFIG_REMOTE_SECTION + DOT
            + remote + DOT + ConfigConstants.CONFIG_KEY_URL;
View Full Code Here

Examples of org.elasticsearch.hadoop.yarn.cfg.Config

        this.env = env;
        cfg = new YarnConfiguration();
        if (env.containsKey(FS_URI)) {
            cfg.set(FileSystem.FS_DEFAULT_NAME_KEY, env.get(FS_URI));
        }
        appConfig = new Config(PropertiesUtils.propsFromBase64String(env.get(CFG_PROPS)));
    }
View Full Code Here

Examples of org.exoplatform.services.organization.idm.Config

   }

   public void testSimple() throws Exception
   {
      assertTrue(true);
      Config config = ((PicketLinkIDMOrganizationServiceImpl)service_).getConfiguration();

      assertNotNull(config);
      assertNotNull(config.getGroupTypeMappings());
      assertNotNull(config.getGroupTypeMappings().keySet());

      assertEquals(config.getGroupTypeMappings().keySet().size(), 5);
      assertEquals(config.getGroupTypeMappings().get("/"), "root_type");

      assertEquals(config.getGroupType("/"), "root_type");
      assertEquals(config.getGroupType(null), "root_type");
      assertEquals(config.getGroupType("/platform"), "platform_type");
      assertEquals(config.getGroupType("/platform/administrators"), "platform_type");
      assertEquals(config.getGroupType("/platform/guests"), "platform_type");
      assertEquals(config.getGroupType("/platform/users"), "users_type");
      assertEquals(config.getGroupType("/platform/users/john"), "platform_type");
      assertEquals(config.getGroupType("/organization/acme/france/offices"), ".organization.acme.france.offices");
      assertEquals(config.getGroupType("/organization/acme/france/offices/paris"), ".organization.acme.france.offices.paris");
      assertEquals(config.getGroupType("/organization/acme/france"), "france_type");
      assertEquals(config.getGroupType("/organization/acme"), ".organization.acme");
      assertEquals(config.getGroupType("/foo/bar"), ".foo.bar");
      assertEquals(config.getGroupType("/foo"), ".foo");
      assertEquals(config.getGroupType("/toto"), "toto_type");
      assertEquals(config.getGroupType("/toto/lolo"), "toto_type");
      assertEquals(config.getGroupType("/toto/lolo/tutu"), "toto_type");


   }
View Full Code Here

Examples of org.formulacompiler.spreadsheet.SpreadsheetBinder.Config

  private SpreadsheetBinder makeBinder() throws CompilerException
  {
    configureClasses();
    validateClasses();
    final Config cfg = new SpreadsheetBinder.Config();
    cfg.spreadsheet = this.spreadsheet;
    cfg.inputClass = this.inputClass;
    cfg.outputClass = this.outputClass;
    cfg.compileTimeConfig = this.compileTimeConfig;
    return SpreadsheetCompiler.newSpreadsheetBinder( cfg );
View Full Code Here

Examples of org.geotools.gce.imagemosaic.jdbc.Config

  protected DBDialect getDBDialect() {
    if (dialect != null) {
      return dialect;
    }

    Config config = null;

    try {
      config = Config.readFrom(new URL(getConfigUrl()));
    } catch (Exception e) {
      throw new RuntimeException(e);
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.Config

    private SecurityService getSecurityService()
    {  
        // this is ugly, the underlying API doesn't understand that there is more than one <security-service>,
        // each with one or more <auth-realm>.  So we'll just take the first config
        final Domain domainConfig = getDomainRootProxy().child(Domain.class);
        final Config config = domainConfig.getConfigs().getConfig().values().iterator().next();
       
        return config.getSecurityService();
    }
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.