org.finra.jtaf.core.utilities
Class PropertyManager

java.lang.Object
  extended by org.finra.jtaf.core.utilities.PropertyManager
Direct Known Subclasses:
JTAFPropertyManager

public class PropertyManager
extends Object

This class is similar to java Properties reader. It takes care of reading properties from the specified file. The difference however is, it allows to override any property by specifying it as a System property.


Field Summary
protected  String fileName
           
protected  String propertyPrefix
           
protected  PropertyResourceBundle propertyResourceBundle
           
 
Constructor Summary
PropertyManager(String fileName, String propertyPrefix)
           
 
Method Summary
 String getProperty(String propertyName)
           
protected  PropertyResourceBundle getPropertyResourceBundle()
           
protected  void loadProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

protected String fileName

propertyPrefix

protected String propertyPrefix

propertyResourceBundle

protected PropertyResourceBundle propertyResourceBundle
Constructor Detail

PropertyManager

public PropertyManager(String fileName,
                       String propertyPrefix)
Method Detail

getProperty

public String getProperty(String propertyName)

getPropertyResourceBundle

protected PropertyResourceBundle getPropertyResourceBundle()

loadProperties

protected void loadProperties()


Copyright © 2014. All rights reserved.