Examples of stringPropertyNames()


Examples of java.util.Properties.stringPropertyNames()

        AS_ROOT_LOGGER.serverStarting(prettyVersion);
        if (CONFIG_LOGGER.isDebugEnabled()) {
            final Properties properties = System.getProperties();
            final StringBuilder b = new StringBuilder(8192);
            b.append("Configured system properties:");
            for (String property : new TreeSet<String>(properties.stringPropertyNames())) {
                b.append("\n\t").append(property).append(" = ").append(properties.getProperty(property, "<undefined>"));
            }
            CONFIG_LOGGER.debug(b);
            CONFIG_LOGGER.debugf("VM Arguments: %s", getVMArguments());
            if (CONFIG_LOGGER.isTraceEnabled()) {
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

                    props.setProperty(def.getName(), "0");
                }
            }

            StringBuilder finalVersionList = new StringBuilder();
            for(String propName: props.stringPropertyNames()) {
                finalVersionList.append(propName + "=" + props.getProperty(propName) + "\n");
            }
            versionStore.put(metadataVersionsKey,
                             new Versioned<byte[]>(finalVersionList.toString().getBytes(), newClock),
                             null);
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

            {
                e.printStackTrace();
                return false;
            }
           
            for (final Object key : props.stringPropertyNames())
            {
                final String name = key.toString();
                final String value = props.getProperty(name);
               
                config.put(name, value);
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    Properties properties = new Properties();
    String file = FileUtils.read(new File(this.configDir, "ccrb.properties"));
    properties.load(new StringReader(file));
    debug("Setting system properties:" + properties);

    for (String key : properties.stringPropertyNames()) {
      System.setProperty(key, properties.getProperty(key));
    }
  }

  private void setDefaultProperties() throws Exception {
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

                XmlWebApplicationContext xmlWebApplicationContext = (XmlWebApplicationContext) ContextLoader.getCurrentWebApplicationContext();
                DefaultListableBeanFactory defaultListableBeanFactory = (DefaultListableBeanFactory) xmlWebApplicationContext.getBeanFactory();
                Properties pros = new Properties();
                defaultListableBeanFactory.setBeanClassLoader(LoaderUtil.getClassLoader());
                pros.load(new ByteArrayInputStream(DynamicDeployUtil.findResource(_SPRING_CONFIG_NAME)));
                for (String key : pros.stringPropertyNames()) {
                    BeanDefinition beanDefinition = defaultListableBeanFactory.getBeanDefinition(key);
                    beanDefinition.setBeanClassName(pros.getProperty(key));
                    defaultListableBeanFactory.registerBeanDefinition(key, beanDefinition);
                }
            } catch (IOException ex) {
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

            parameters.put(SessionParameter.COOKIES, "true");
        }

        // get additional workbench properties from system properties
        Properties sysProps = System.getProperties();
        for (String key : sysProps.stringPropertyNames()) {
            if (key.startsWith(WORKBENCH_PREFIX)) {
                parameters.put(key, sysProps.getProperty(key));
            }
        }
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

  public boolean process_stage1(String[] argv) {
    try {
      commandLine = new GnuParser().parse(options, argv);
      Properties confProps = commandLine.getOptionProperties("hiveconf");
      for (String propKey : confProps.stringPropertyNames()) {
        System.setProperty(propKey, confProps.getProperty(propKey));
      }
    } catch (ParseException e) {
      System.err.println(e.getMessage());
      printUsage();
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

      return false;
    }

    if (commandLine.hasOption("hiveconf")) {
      Properties confProps = commandLine.getOptionProperties("hiveconf");
      for (String propKey : confProps.stringPropertyNames()) {
        ss.cmdProperties.setProperty(propKey, confProps.getProperty(propKey));
      }
    }

    return true;
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

         File interceptorPropertyFile = new File(interceptorPropertyFileName);
         if (interceptorPropertyFile.exists())
         {
            Properties properties = new Properties();
            properties.load(new FileInputStream(interceptorPropertyFile));
            for (String propName : properties.stringPropertyNames())
            {
               outProperties.put(propName, properties.get(propName));
            }
         }
         else
View Full Code Here

Examples of java.util.Properties.stringPropertyNames()

    } finally {
        reader.close();
    }
   
    HashMap<String, String> headerMap = new HashMap<String,String>();
    for (final String name : prop.stringPropertyNames()) {
        headerMap.put(name, prop.getProperty(name));
    }
   
    return headerMap;
  }
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.