Examples of ConfigList


Examples of com.crashnote.core.config.helper.ConfigList

            break;
        case STRING:
            out.writeUTF(((ConfigString) value).unwrapped());
            break;
        case LIST:
            final ConfigList list = (ConfigList) value;
            out.writeInt(list.size());
            for (final ConfigValue v : list) {
                writeValue(out, v, (SimpleConfigOrigin) list.origin());
            }
            break;
        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
View Full Code Here

Examples of com.crashnote.external.config.ConfigList

            break;
        case STRING:
            out.writeUTF(((ConfigString) value).unwrapped());
            break;
        case LIST:
            final ConfigList list = (ConfigList) value;
            out.writeInt(list.size());
            for (final ConfigValue v : list) {
                writeValue(out, v, (SimpleConfigOrigin) list.origin());
            }
            break;
        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
View Full Code Here

Examples of com.crashnote.external.config.ConfigList

            break;
        case STRING:
            out.writeUTF(((ConfigString) value).unwrapped());
            break;
        case LIST:
            final ConfigList list = (ConfigList) value;
            out.writeInt(list.size());
            for (final ConfigValue v : list) {
                writeValue(out, v, (SimpleConfigOrigin) list.origin());
            }
            break;
        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
View Full Code Here

Examples of com.heroku.api.request.config.ConfigList

     * List all the environment variables for an app.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @return
     */
    public Map<String, String> listConfig(String appName) {
        return connection.execute(new ConfigList(appName), apiKey);
    }
View Full Code Here

Examples of com.heroku.api.request.config.ConfigList

    }

    @Test(dataProvider = "app", invocationCount = 4, successPercentage = 25, retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testConfigCommand(App app) {
        addConfig(app, "FOO", "BAR");
        Request<Map<String, String>> req = new ConfigList(app.getName());
        Map<String, String> response = connection.execute(req, apiKey);
        assertNotNull(response.get("FOO"));
        assertEquals(response.get("FOO"), "BAR");
    }
View Full Code Here

Examples of com.typesafe.config.ConfigList

   * @param web web sec object
   * @throws Exception ex
   */
  @Override
  public void configure(WebSecurity web) throws Exception {
    ConfigList c = Config.getConfig().getList("security.ignored");
    for (ConfigValue configValue : c) {
      web.ignoring().antMatchers((String) configValue.unwrapped());
    }
    //web.debug(true);
  }
View Full Code Here

Examples of com.typesafe.config.ConfigList

   * @param web web sec object
   * @throws Exception ex
   */
  @Override
  public void configure(WebSecurity web) throws Exception {
    ConfigList c = Config.getConfig().getList("security.ignored");
    for (ConfigValue configValue : c) {
      web.ignoring().antMatchers((String) configValue.unwrapped());
    }
    //web.debug(true);
  }
View Full Code Here

Examples of com.typesafe.config.ConfigList

            return booleanArray;
        } else if (Number.class.isAssignableFrom(componentType|| componentType.isPrimitive()) {
            // primitive numeric types are not subclasses of Number, so just catch all non-booleans
            return hydrateNumberArray(componentType, fieldName, config);
        } else {
            ConfigList configValues = config.getList(fieldName);
            Object[] customs = (Object[]) Array.newInstance(componentType, configValues.size());
            int index = 0;
            for (ConfigValue value : configValues) {
                if ((value == null) || (value.valueType() == ConfigValueType.NULL)) {
                    customs[index++] = null;
                } else {
View Full Code Here

Examples of com.typesafe.config.ConfigList

                Object[] asArray = (Object[]) hydrateArray(vc, field.getName(), config);
                Collections.addAll(col, asArray);
            }
        } else {
            // autocollection is a little ambiguous for nested lists, so just don't support
            ConfigList configValues = config.getList(field.getName());
            for (ConfigValue configValue : configValues) {
                Config arrayContainer = configValue.atKey("array");
                Object arrayValue = hydrateArray(vc, "array", arrayContainer);
                col.add(arrayValue);
            }
View Full Code Here

Examples of com.typesafe.config.ConfigList

            return booleanArray;
        } else if (Number.class.isAssignableFrom(componentType|| componentType.isPrimitive()) {
            // primitive numeric types are not subclasses of Number, so just catch all non-booleans
            return hydrateNumberArray(componentType, fieldName, config);
        } else {
            ConfigList configValues = config.getList(fieldName);
            Object[] customs = (Object[]) Array.newInstance(componentType, configValues.size());
            int index = 0;
            for (ConfigValue value : configValues) {
                if ((value == null) || (value.valueType() == ConfigValueType.NULL)) {
                    customs[index++] = null;
                } else {
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.