Examples of Config


Examples of com.alibaba.dubbo.registry.common.domain.Config

                    String value = "";
                    if (values != null && values.length > 0
                            && values[0] != null && values[0].length() > 0) {
                        value = values[0];
                    }
                    Config config = new Config();
                    config.setKey(key);
                    config.setUsername(currentUser.getUsername());
                    config.setOperatorAddress((String) context.get("operatorAddress"));
                    config.setValue(value);
                    configs.add(config);
                }
            }
            if (configs.size() > 0) {
                configDAO.update(configs);
View Full Code Here

Examples of com.almende.eve.capabilities.Config

   * @param cl
   *            the custom classloader
   */
  public static void loadAgents(final InputStream is, final WakeService ws,
      final ClassLoader cl) {
    final Config config = YamlReader.load(is).expand();
   
    final ArrayNode agents = (ArrayNode) config.get("agents");
    for (final JsonNode agent : agents) {
      final AgentConfig agentConfig = new AgentConfig((ObjectNode) agent);
      final Agent newAgent = new AgentBuilder().withWakeService(ws)
          .withClassLoader(cl).with(agentConfig).build();
      LOG.info("Created agent:" + newAgent.getId());
View Full Code Here

Examples of com.almende.eve.config.Config

            + "Trying default filename '" + filename + "'.");
      }
      String fullname = "/WEB-INF/" + filename;
      logger.info("loading configuration file '"
          + getServletContext().getRealPath(fullname) + "'...");
      Config config = new Config(getServletContext().getResourceAsStream(
          fullname));
      agentFactory = AgentHost.getInstance();
      agentFactory.loadConfig(config);
    }
  }
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Config

 
  public final int numBones;
  public final int weights;
 
  public DepthShader(final Renderable renderable) {
    this(renderable, new Config());
  }
View Full Code Here

Examples of com.bea.x2002.x09.xbean.config.ConfigDocument.Config

        _prefixMap = new LinkedHashMap();
        _suffixMap = new LinkedHashMap();
        _qnameMap = new LinkedHashMap();
        for (int i = 0; i < configs.length; i++)
        {
            Config config = configs[i];
            Nsconfig[] nsa = config.getNamespaceArray();
            for (int j = 0; j < nsa.length; j++)
            {
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPackage(), _packageMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPrefix(), _prefixMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getSuffix(), _suffixMap);
            }
           
            Qnameconfig[] qnc = config.getQnameArray();
            for (int j = 0; j < qnc.length; j++)
            {
                _qnameMap.put(qnc[j].getName(), qnc[j].getJavaname());
            }
        }
View Full Code Here

Examples of com.caucho.config.Config

  }

  private WatchdogChild readConfig(WatchdogArgs args)
    throws Exception
  {
    Config config = new Config();
    // ignore since we don't want to start databases
    config.setIgnoreEnvironment(true);

    Vfs.setPwd(args.getRootDirectory());
    BootResinConfig resin = new BootResinConfig(_system, args);

    config.configure(resin,
                     args.getResinConf(),
                     "com/caucho/server/resin/resin.rnc");

    if (_management == null)
      _management = resin.getManagement();
View Full Code Here

Examples of com.cibuddy.project.configuration.jaxb.v1_0.indicator.Config

        return packageName;
    }

    @Override
    Config getRootTypeInstance() {
        return new Config();
    }
View Full Code Here

Examples of com.cloud.configuration.Config

    }

    @Override
    public String getConfigValue(String name, String scope, Long resourceId) {
        // If either of scope or resourceId is null then return global config value otherwise return value at the scope
        Config c = Config.getConfig(name);
        if (c == null) {
            throw new CloudRuntimeException("Missing configuration variable " + name + " in configuration table");
        }
        String configScope = c.getScope();
        if (scope != null && !scope.isEmpty()) {
            if (!configScope.contains(scope)) {
                throw new CloudRuntimeException("Invalid scope " + scope + " for the parameter " + name );
            }
            if (resourceId != null) {
View Full Code Here

Examples of com.couchbase.client.vbucket.config.Config

  }

  @Override
  public MemcachedConnection createConnection(List<InetSocketAddress> addrs)
    throws IOException {
    Config config = getVBucketConfig();
    if (config.getConfigType() == ConfigType.MEMCACHE) {
      return new CouchbaseMemcachedConnection(getReadBufSize(), this, addrs,
        getInitialObservers(), getFailureMode(), getOperationFactory());
    } else if (config.getConfigType() == ConfigType.COUCHBASE) {
      return new CouchbaseConnection(getReadBufSize(), this, addrs,
        getInitialObservers(), getFailureMode(), getOperationFactory());
    }
    throw new IOException("No ConnectionFactory for bucket type "
      + config.getConfigType());
  }
View Full Code Here

Examples of com.crashnote.core.config.Config

    public static final String PROP_FILE = Config.LIB_NAME + ".properties";

    // SETUP ======================================================================================

    public ConfigFactory() {
        this((C) new Config());
    }
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.