Package fr.paris.lutece.util
Class AppInitPropertiesService
java.lang.Object
fr.paris.lutece.util.AppInitPropertiesService
This class provides management services for properties files
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of keys that match a given prefix.static PropertiesGets propertiesGet all properties As mapReturn Properties Namestatic StringgetProperty(String strProperty) Returns the value of a variable defined in the .properties file of the application as a Stringstatic voidInitializes the servicestatic voidReloads a given properties filestatic voidReloads all the properties files
-
Method Details
-
init
Initializes the service- Parameters:
strConfPath- The configuration path
-
getProperty
Returns the value of a variable defined in the .properties file of the application as a String- Parameters:
strProperty- The variable name- Returns:
- The variable value read in the properties file
-
reloadAll
public static void reloadAll()Reloads all the properties files -
reload
Reloads a given properties file- Parameters:
strFilename- The file name
-
getProperties
Gets properties- Returns:
- All properties
- Since:
- version 3.0
-
getPropertiesAsMap
Get all properties As map- Returns:
- Properties as map
-
getPropertiesName
Return Properties Name- Returns:
-
getKeys
Returns a list of keys that match a given prefix.- Parameters:
strPrefix- the str prefix- Returns:
- A list of keys that match the prefix
- Since:
- version 7.0
-