|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjimm.twice.util.Props
The single instance of this class can retrieve and return property values.
Field Summary | |
protected static java.lang.String |
DEFAULT_RESOURCE_PREFIX
|
protected java.util.ResourceBundle |
props
|
protected static Props |
propsInstance
|
protected static java.lang.String |
resourcePrefix
|
protected static java.lang.Object |
syncLock
|
Constructor Summary | |
protected |
Props()
Constructor. |
Method Summary | |
boolean |
getBooleanProperty(java.lang.String name)
Returns a boolean property or false if not found. |
java.lang.String |
getProperty(java.lang.String name)
Returns the specified property or null if not found. |
static Props |
instance()
Returns the single instance of this class. |
static void |
setResourcePrefix(java.lang.String prefix)
Sets the resource prefix (the name used to look up properties). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String DEFAULT_RESOURCE_PREFIX
protected static java.lang.String resourcePrefix
protected static Props propsInstance
protected static java.lang.Object syncLock
protected java.util.ResourceBundle props
Constructor Detail |
protected Props()
Method Detail |
public static Props instance()
public static void setResourcePrefix(java.lang.String prefix)
prefix
- the resource prefixpublic java.lang.String getProperty(java.lang.String name)
null
if not found.
null
if not foundpublic boolean getBooleanProperty(java.lang.String name)
false
if not found. True
values include "y", "yes", "true", or "t" (case insensitive).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |