|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.util.AppPropertiesService
public final class AppPropertiesService
this class provides management services for properties files
Constructor Summary | |
---|---|
AppPropertiesService()
|
Method Summary | |
---|---|
static java.lang.String |
getProperty(java.lang.String strProperty)
Returns the value of a variable defined in the .properties file of the application as a String |
static java.lang.String |
getProperty(java.lang.String strProperty,
java.lang.String strDefault)
Returns the value of a variable defined in the .properties file of the application as a String |
static int |
getPropertyInt(java.lang.String strProperty,
int nDefault)
Returns the value of a variable defined in the .properties file of the application as an int |
static void |
init(java.lang.String strConfPath)
|
static void |
reload(java.lang.String strFilename)
Reloads a given properties file |
static void |
reloadAll()
Reloads all the properties files |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppPropertiesService()
Method Detail |
---|
public static void init(java.lang.String strConfPath) throws LuteceInitException
LuteceInitException
public static java.lang.String getProperty(java.lang.String strProperty)
strProperty
- The variable name
public static java.lang.String getProperty(java.lang.String strProperty, java.lang.String strDefault)
strProperty
- The variable namestrDefault
- The default value which is returned if no value is found for the variable in the .properties
file.
public static int getPropertyInt(java.lang.String strProperty, int nDefault)
strProperty
- The variable namenDefault
- The default value which is returned if no value is found for the variable in the le downloadFile
.properties. .properties file.
public static void reloadAll()
public static void reload(java.lang.String strFilename)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |