Examples of propertyNames()


Examples of java.util.Properties.propertyNames()

            }
            else {
                VariableManager varman = VariableManager.getInstance();
                Properties myProperties = new Properties();
                myProperties.load(inputStream);
                Enumeration propertyNames = myProperties.propertyNames();
                while (propertyNames.hasMoreElements()) {
                    String name = (String) propertyNames.nextElement();
                    String value = myProperties.getProperty(name);                   
                    varman.addIncludedVariable(name,value, configName);
                }
View Full Code Here

Examples of java.util.Properties.propertyNames()

    public String[] getPropertyNames(String category) {
        if ( containsCategory(category) ) {
            // FIXME: include parent properties
            Properties properties = getProperties(category);           
            if (properties != null) {               
                Enumeration en = properties.propertyNames();
                Vector keys = new Vector();
                while ( en.hasMoreElements() ) {
                    String nm = (String)en.nextElement();                   
                    keys.add(nm);
                }
View Full Code Here

Examples of java.util.Properties.propertyNames()

        LogManager lm = LogManager.getLogManager();
        try {
            fis = new FileInputStream(globalCfgFile);
            Properties defaultProps = new Properties();
            defaultProps.load(fis);
            Enumeration names = defaultProps.propertyNames();
            int i = 0;
            String name;
            String liveVal;
            while (names.hasMoreElements()) {
                i++;
View Full Code Here

Examples of java.util.Properties.propertyNames()

   * Populates the sysProps Map<String,String> with all entries
   * from the system properties object.
   */
  void populateSysProps() {
    final Properties systemProperties = System.getProperties();
    final Enumeration systemPropertiesNames = systemProperties.propertyNames();
    while (systemPropertiesNames.hasMoreElements()) {
      try {
        final String name  = (String) systemPropertiesNames.nextElement();
        final String value = systemProperties.getProperty(name);
        sysProps.put(name, value);
View Full Code Here

Examples of java.util.Properties.propertyNames()

              ErrorReporter.getErrorHandler().reportError("Cannot find the properties file");
                throw new ConfigurationManagerException("Cannot find the properties file");
            }
            Properties myProperties = new Properties();
            myProperties.load(inputStream);
            Enumeration propertyNames = myProperties.propertyNames();
            while (propertyNames.hasMoreElements()) {
                String name = (String) propertyNames.nextElement();
                String value = myProperties.getProperty(name);
                config.setProperty(name, value);
            }
View Full Code Here

Examples of java.util.Properties.propertyNames()

        }

        value = properties.getProperty(PROP_CONNECTIONPROPERTIES);
        if (value != null) {
          Properties p = getProperties(value);
          Enumeration e = p.propertyNames();
          while (e.hasMoreElements()) {
            String propertyName = (String) e.nextElement();
            dataSource.addConnectionProperty(propertyName, p.getProperty(propertyName));
          }
        }
View Full Code Here

Examples of java.util.Properties.propertyNames()

            inputStream.close();
        }

        final Map responseHeaders = new HashMap(headers.size(), 1);

        Enumeration headerNames = headers.propertyNames();
        while (headerNames.hasMoreElements()) {
            String headerName = (String) headerNames.nextElement();
            String headerValue = headers.getProperty(headerName);
            responseHeaders.put(headerName, new Expression(headerValue));
        }
View Full Code Here

Examples of java.util.Properties.propertyNames()

            this.config.put("webmail.log.facility",
                    "net.wastl.webmail.logger.ServletLogger");
        }

        // Override settings with webmail.* meta.properties
        final Enumeration rte = rtProps.propertyNames();
        int overrides = 0;
        String k;
        while (rte.hasMoreElements()) {
            k = (String) rte.nextElement();
            if (!k.startsWith("webmail.")) {
View Full Code Here

Examples of java.util.Properties.propertyNames()

             * Always cache using context class loader..
             */
            cacheFactory(contextClassLoader, factory);

            if( props!=null ) {
                Enumeration names = props.propertyNames();
                while (names.hasMoreElements()) {
                    String name = (String) names.nextElement();
                    String value = props.getProperty(name);
                    factory.setAttribute(name, value);
                }
View Full Code Here

Examples of java.util.Properties.propertyNames()

  private Set getAllSystemPropKeys()
  {
    final HashSet res = new HashSet();

    final Properties properties = System.getProperties();
    for (Enumeration pke = properties.propertyNames(); pke.hasMoreElements();){
      final String key = (String) pke.nextElement();
      res.add(key);
    }
    return res;
  }
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.