Package com.scooterframework.common.util

Examples of com.scooterframework.common.util.NamedProperties


                String name = key.substring(key.lastIndexOf('.') + 1);
                Properties p = PropertyFileUtil.parseNestedPropertiesFromLine(getProperty(key), nameValueSpliter, propertyDelimiter);
                p.setProperty(KEY_DB_CONNECTION_NAME, name);
                checkConnectionPoolProperties(name, p);
                if (databaseConnectionsMap.containsKey(name)) {
                    NamedProperties np = databaseConnectionsMap.get(name);
                    np.setProperties(p);
                }
                else {
                    NamedProperties np = new NamedProperties(name, p);
                    databaseConnectionsMap.put(name, np);
                }
            }
            else
            if (key.startsWith("reference.data")) {
                String name = key.substring(key.lastIndexOf('.') + 1);
                Properties p = PropertyFileUtil.parseNestedPropertiesFromLine(getProperty(key), nameValueSpliter, propertyDelimiter);
                if (referenceDataMap.containsKey(name)) {
                    NamedProperties np = referenceDataMap.get(name);
                    np.setProperties(p);
                }
                else {
                    NamedProperties np = new NamedProperties(name, p);
                    referenceDataNames.add(name);
                    referenceDataMap.put(name, np);
                }
            }
        }
View Full Code Here


    public Properties getPredefinedDatabaseConnectionProperties(String connName) {
      if (connName == null)
        throw new IllegalArgumentException("Error in " +
            "getPredefinedDatabaseConnectionProperties: connName cannot be null.");

        NamedProperties np = databaseConnectionsMap.get(connName);
        return (np != null)?np.getProperties():(new Properties());
    }
View Full Code Here

    /**
     * Returns properties of reference data specified by the name
     */
    public Properties getReferenceDataProperties(String referenceDataName) {
        NamedProperties np = referenceDataMap.get(referenceDataName);
        return (np != null)?np.getProperties():(new Properties());
    }
View Full Code Here

TOP

Related Classes of com.scooterframework.common.util.NamedProperties

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.