Package fr.paris.lutece.util
Class AppInitPropertiesService
- java.lang.Object
-
- fr.paris.lutece.util.AppInitPropertiesService
-
public final class AppInitPropertiesService extends Object
This class provides management services for properties files
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getKeys(String strPrefix)Returns a list of keys that match a given prefix.static PropertiesgetProperties()Gets propertiesstatic Map<String,String>getPropertiesAsMap()Get all properties As mapstatic StringgetProperty(String strProperty)Returns the value of a variable defined in the .properties file of the application as a Stringstatic voidinit(String strConfPath)Initializes the servicestatic voidreload(String strFilename)Reloads a given properties filestatic voidreloadAll()Reloads all the properties files
-
-
-
Method Detail
-
init
public static void init(String strConfPath)
Initializes the service- Parameters:
strConfPath- The configuration path
-
getProperty
public static String getProperty(String strProperty)
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
public static void reload(String strFilename)
Reloads a given properties file- Parameters:
strFilename- The file name
-
getProperties
public static Properties getProperties()
Gets properties- Returns:
- All properties
- Since:
- version 3.0
-
getPropertiesAsMap
public static Map<String,String> getPropertiesAsMap()
Get all properties As map- Returns:
- Properties as map
-
-