Package java.util

Examples of java.util.Properties.entrySet()


            }
            this.repoLastModified = this.repoPropertiesFile.lastModified();
        }

        TreeSet bundles = new TreeSet();
        for (Iterator ei = props.entrySet().iterator(); ei.hasNext();) {
            Map.Entry entry = (Map.Entry) ei.next();
            String key = (String) entry.getKey();
            if (key.startsWith(PROP_PREFIX_BUNDLE)) {
                bundles.add(entry.getValue());
            }
View Full Code Here


      logger.debug("Group '{}' initialized with {} properties", groupName, groupedProperties.size());

      userConf = new HashMap<ConfigToken<?>, Object>();

      for (Entry<Object, Object> entry : groupedProperties.entrySet()) {
        String key = entry.getKey().toString().trim().toLowerCase();

        ConfigToken<?> configToken = TableConfig.findByPropertyName(key);
        if (configToken != null) {
          userConf.put(configToken, entry.getValue().toString());
View Full Code Here

    Properties prop = new Properties();
    InputStream in = PropertiesUtils.class
        .getResourceAsStream("/config.properties");
    try {
      prop.load(in);
      Iterator<Entry<Object, Object>> itr = prop.entrySet().iterator();
      while (itr.hasNext()) {
        Entry<Object, Object> e = (Entry<Object, Object>) itr.next();
        System.err.println((e.getKey().toString() + "" + e.getValue()
            .toString()));
      }
View Full Code Here

  public void action() throws Exception {
    Properties prop = PropertiesUtils.getProperties();
    if (null != prop) {
      String data = null;
      try {
        Iterator<Entry<Object, Object>> itr = prop.entrySet().iterator();
        while (itr.hasNext()) {
          Entry<Object, Object> e = (Entry<Object, Object>) itr.next();
          int sun = e.getKey().toString().indexOf("jhost");
          if (sun > -1) {
            String name = e.getKey().toString().substring(5);
View Full Code Here

    try {
      hibernatePropertiesStream = TestHelper.class.getResourceAsStream( "/hibernate.properties" );
      Properties hibernateProperties = new Properties();
      hibernateProperties.load( hibernatePropertiesStream );

      for ( Entry<Object, Object> property : hibernateProperties.entrySet() ) {
        properties.put( property.getKey().toString(), property.getValue().toString() );
      }

      return properties;
    }
View Full Code Here

        try {
            InputStream is = getClass().getResourceAsStream(WEBSERVER_PROPERTIES);
            if ( is != null ) props.load(is);
        } catch (Exception e) { }

        for (Map.Entry entry : props.entrySet()) {
            String val = (String) entry.getValue();
            val = val.replace("{{warfile}}", archive).replace("{{webroot}}", webroot.getAbsolutePath());
            entry.setValue(val);
        }
View Full Code Here

      }
      else {
        p.put("build.system", "standalone");
      }
      String info = "System: ${os.name} ${os.version} (${os.arch}) / ${build.system} / ${java.vendor} ${java.vm.name} ${java.version}";
      for (Entry<Object, Object> entry : p.entrySet()) {
        info = info.replaceFirst(Pattern.quote("${" + entry.getKey() + "}"), entry.getValue().toString());
      }
      System.err.println(info);
      System.err.print("Proxy : " + CloudFoundryTestUtil.getProxy("google.com", IProxyData.HTTP_PROXY_TYPE)
          + " (Platform)");
View Full Code Here

            for (String pkg : systemPkgs) {
                log.verbose(pkg);
            }
            log.verbose("Generated " + bundle.getSymbolicName());
            log.verbose("-----------------------------");
            for (Map.Entry<Object, Object> e : spec.entrySet())
            {
                log.verbose(e.getKey() + "=" + e.getValue());
                log.verbose("-----------------------------");
            }
            log.verbose("BND classpath: " + Arrays.asList(classpath));
View Full Code Here

            in = m_action.getFileInputStream(m_file);

            Properties store = new Properties();
            store.load(in);

            for (Iterator iter = store.entrySet().iterator(); iter.hasNext();)
            {
                Entry entry = (Entry) iter.next();
                result.put(entry.getKey(), getUnencoded((String) entry
                    .getValue(), target));
            }
View Full Code Here

                    componentType, new Class[] { String.class });
                Object[] params = new Object[1];
                Object[] result = (Object[]) Array.newInstance(componentType,
                    props.size());

                for (Iterator iter = props.entrySet().iterator(); iter
                    .hasNext();)
                {
                    Entry entry = (Entry) iter.next();
                    params[0] = entry.getValue();
                    result[Integer.parseInt((String) entry.getKey())] = constructor
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.