|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertiesLoader
A PropertiesLoader does provides a standard way for loading configuration(s), as Properties.
PropertiesLoaderImpl
Method Summary | |
---|---|
File |
getPropertiesFile()
Returns the location of the properties file. |
String |
getPropertiesFileMessage()
Returns a message about the location from which the message was loaded. |
Properties |
loadConfiguration()
Returns the loaded configuration Properties , including the System.getProperties(). |
Properties |
loadConfiguration(Boolean includeSystemProperties)
Load the configuration properties from file and add the System properties (environment variable). |
Method Detail |
---|
Properties loadConfiguration() throws FileNotFoundException, IOException
Properties
, including the System.getProperties().
FileNotFoundException
- When no configuration file is found.
IOException
- When loading of properties file is not successful.Properties loadConfiguration(Boolean includeSystemProperties) throws FileNotFoundException, IOException
includeSystemProperties
- - If true
the system properties will be included
(over ruling the loaded properties from file), else (when false) the system properties will
not added. (Default is true
)
FileNotFoundException
- When no configuration file is found.
IOException
- When loading of properties file is not successful.File getPropertiesFile() throws FileNotFoundException
FileNotFoundException
- When no configuration file is found.String getPropertiesFileMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |