public class RuntimePropertiesImpl
extends org.refcodes.collection.impls.PropertiesImpl
RuntimePropertiesImpl
load the first properties file found (with
"key=value" entries) in one of several default locations determined by the
RuntimeUtility.toAppConfigDirs()
method.
At the time of this writing (2015-11-12), the locations which to seek for the
first occurrence of the properties file are determined as follows:
The applications base directory (where your JAR or your classes reside) is
taken and a list of directories relative to this base directory is generated
as defined in the SystemProperty#CONFIG_DIR_NAMES
: The actual
directories being returned (in case them exist) are as follows, relative to
your applications base directory:
SystemProperty.CONFIG_DIR
org.refcodes.collection.impls.PropertiesImpl.MutablePropertiesImpl, org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
org.refcodes.collection.Properties.ClearableProperties, org.refcodes.collection.Properties.MutableProperties, org.refcodes.collection.Properties.PropertiesBuilder
Constructor and Description |
---|
RuntimePropertiesImpl(String aPropertiesFileName)
Loads a properties file from the first folder containing such a file as
of the specification for the method
RuntimeUtility.toAppConfigDirs() . |
public RuntimePropertiesImpl(String aPropertiesFileName) throws IOException
RuntimeUtility.toAppConfigDirs()
.aPropertiesFileName
- The filename of the properties file to load.IOException
- thrown in case accessing or processing the properties
file failed.Copyright © 2017. All rights reserved.