edu.samplu.common
Class PropertiesUtils

java.lang.Object
  extended by edu.samplu.common.PropertiesUtils

public class PropertiesUtils
extends Object

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
PropertiesUtils()
           
 
Method Summary
static Properties loadProperties(InputStream inputStream)
           
static Properties loadPropertiesWithSystemOverrides(InputStream inputStream)
           
static Properties loadPropertiesWithSystemOverridesAndNumberedPropertiesToList(InputStream inputStream)
           
static String removeNumber(String numberedKey)
           
static void systemPropertiesOverride(Properties props)
           
static void systemPropertiesOverride(Properties props, String key)
          -Dkey.propertyname= to override the property value for propertyname.
static void transformNumberedPropertiesToList(Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtils

public PropertiesUtils()
Method Detail

loadPropertiesWithSystemOverrides

public static Properties loadPropertiesWithSystemOverrides(InputStream inputStream)
                                                    throws IOException
Throws:
IOException

loadPropertiesWithSystemOverridesAndNumberedPropertiesToList

public static Properties loadPropertiesWithSystemOverridesAndNumberedPropertiesToList(InputStream inputStream)
                                                                               throws IOException
Throws:
IOException

loadProperties

public static Properties loadProperties(InputStream inputStream)
                                 throws IOException
Throws:
IOException

removeNumber

public static String removeNumber(String numberedKey)

systemPropertiesOverride

public static void systemPropertiesOverride(Properties props)

systemPropertiesOverride

public static void systemPropertiesOverride(Properties props,
                                            String key)
-Dkey.propertyname= to override the property value for propertyname.

Parameters:
props - properties to update with System.getProperty overrides.
key - optional value that the property names will be appended to.

transformNumberedPropertiesToList

public static void transformNumberedPropertiesToList(Properties props)


Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.