edu.sdsc.inca.util
Class CachedProperties

java.lang.Object
  extended by edu.sdsc.inca.util.CachedProperties

public class CachedProperties
extends java.lang.Object

Creates cached Properties fetched according to refreshMins.


Constructor Summary
CachedProperties(java.lang.String fileName, java.lang.String defaultRefresh)
          Sets the name of the properties file in the classpath and the default number of minutes to fetch it if not specified as a system property.
 
Method Summary
 java.util.Properties getProperties()
          Gets property list from file in classpath if cache has expired according to refreshMins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedProperties

public CachedProperties(java.lang.String fileName,
                        java.lang.String defaultRefresh)
Sets the name of the properties file in the classpath and the default number of minutes to fetch it if not specified as a system property.

Method Detail

getProperties

public java.util.Properties getProperties()
Gets property list from file in classpath if cache has expired according to refreshMins.

Returns:
cached Properties