|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbmaintain.config.DbMaintainConfigurationLoader
public class DbMaintainConfigurationLoader
Utility that loads the configuration of DbMaintain.
| Field Summary | |
|---|---|
static String |
DEFAULT_PROPERTIES_FILE_NAME
Name of the fixed configuration file that contains all defaults |
| Constructor Summary | |
|---|---|
DbMaintainConfigurationLoader()
|
|
| Method Summary | |
|---|---|
Properties |
loadConfiguration()
Loads all properties as defined by the default configuration. |
Properties |
loadConfiguration(File customConfigurationFile)
Loads all properties as defined by the default configuration. |
Properties |
loadConfiguration(Properties customConfiguration)
Loads all properties as defined by the default configuration. |
Properties |
loadConfiguration(URL customConfigurationUrl)
Loads all properties as defined by the default configuration. |
Properties |
loadDefaultConfiguration()
Creates and loads the default configuration settings from the DEFAULT_PROPERTIES_FILE_NAME file. |
protected Properties |
loadPropertiesFromClasspath(String propertiesFileName)
|
protected Properties |
loadPropertiesFromFile(File propertiesFile)
|
protected Properties |
loadPropertiesFromStream(InputStream inputStream)
|
protected Properties |
loadPropertiesFromURL(URL propertiesFileUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PROPERTIES_FILE_NAME
| Constructor Detail |
|---|
public DbMaintainConfigurationLoader()
| Method Detail |
|---|
public Properties loadConfiguration()
public Properties loadConfiguration(URL customConfigurationUrl)
customConfigurationUrl - URL that points to the custom configuration, may be null if there is no custom config
public Properties loadConfiguration(File customConfigurationFile)
customConfigurationFile - The custom configuration, may be null if there is no custom config
public Properties loadConfiguration(Properties customConfiguration)
customConfiguration - custom configuration, may be null if there is no custom config
public Properties loadDefaultConfiguration()
DEFAULT_PROPERTIES_FILE_NAME file.
RuntimeException - if the file cannot be found or loadedprotected Properties loadPropertiesFromClasspath(String propertiesFileName)
protected Properties loadPropertiesFromURL(URL propertiesFileUrl)
protected Properties loadPropertiesFromFile(File propertiesFile)
protected Properties loadPropertiesFromStream(InputStream inputStream)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||