net.sf.zekr.common.config
Class ResourceManager
java.lang.Object
net.sf.zekr.common.config.ResourceManager
public class ResourceManager
- extends java.lang.Object
This class is used to handle dynamic resource bundles which use Velocity as the template engine.
- Author:
- Mohsen Saboorian
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ResourceManager getInstance()
getString
public java.lang.String getString(java.lang.String key)
getString
public java.lang.String getString(java.lang.String key,
java.lang.String value)
- Parameters:
key
- key to find in resourcevalue
- value to be returned if key not found
- Returns:
- related entry in the resource file, or value if key not found.
getStrings
public java.lang.String[] getStrings(java.lang.String key)
getString
public java.lang.String getString(java.lang.String key,
java.lang.Object[] strArray)