Package com.typesafe.config

Examples of com.typesafe.config.ConfigObject


                ConfigValue locRef = (ConfigValue) wrapLoc.getSourceRef();
                List<JsonMappingException.Reference> paths = cause.getPath();
                for (JsonMappingException.Reference path : paths) {
                    if (locRef instanceof ConfigObject) {
                        String fieldName = path.getFieldName();
                        ConfigObject locRefObject = (ConfigObject) locRef;
                        if (locRefObject.containsKey(fieldName)) {
                            locRef = locRefObject.get(fieldName);
                        } else {
                            break;
                        }
                    } else if (locRef instanceof ConfigList) {
                        int fieldIndex = path.getIndex();
View Full Code Here


   */
  @Override
  protected void configure(HttpSecurity http) throws Exception {
    String[] defroles = {"USER", "MOD", "ADMIN"};
    Map<String, String> confMap = Config.getConfigMap();
    ConfigObject c = Config.getConfig().getObject("security.protected");

    for (ConfigValue cv : c.values()) {
      ArrayList<String> patterns = new ArrayList<String>();
      ArrayList<String> roles = new ArrayList<String>();

      for (ConfigValue configValue : (ConfigList) cv) {
        if (configValue instanceof List) {
View Full Code Here

TOP

Related Classes of com.typesafe.config.ConfigObject

Copyright © 2018 www.massapicom. 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.