iitb.con.util
Class PropertiesConfig

java.lang.Object
  extended by iitb.con.util.PropertiesConfig

public class PropertiesConfig
extends java.lang.Object

Properties Configuration util


Constructor Summary
PropertiesConfig()
           
 
Method Summary
static java.util.Properties loadProperties(java.lang.Class clazz, java.lang.String fileName)
          Loads the properties from the config file, if file is inside a package
static java.util.Properties loadProperties(java.lang.String fileName)
          Loads the properties from the config file
static void storeProperties(java.lang.Class clazz, java.lang.String fileName, java.util.Properties properties)
          Stores the properties into the config file, if file is inside a package
static void storeProperties(java.lang.String fileName, java.util.Properties properties)
          Stores the properties into the config file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfig

public PropertiesConfig()
Method Detail

loadProperties

public static java.util.Properties loadProperties(java.lang.Class clazz,
                                                  java.lang.String fileName)
Loads the properties from the config file, if file is inside a package

Parameters:
clazz - package class
fileName - config file name
Returns:
Properties

loadProperties

public static java.util.Properties loadProperties(java.lang.String fileName)
Loads the properties from the config file

Parameters:
fileName - config file name
Returns:
Properties

storeProperties

public static void storeProperties(java.lang.Class clazz,
                                   java.lang.String fileName,
                                   java.util.Properties properties)
Stores the properties into the config file, if file is inside a package

Parameters:
clazz - package class
fileName - config file name
properties - Properties

storeProperties

public static void storeProperties(java.lang.String fileName,
                                   java.util.Properties properties)
Stores the properties into the config file

Parameters:
fileName - config file name
properties - Properties