public interface ResourcePropertiesMixin<B extends ResourcePropertiesMixin<B>>
ResourceProperties
: As
ResourceProperties
are immutable from an interface's point of view,
there are no mutating methods provided. Sub-types of the
ResourceProperties
might need to load the properties after
instantiation. Such types might implement this interface, providing means to
load from resources after instantiation.Modifier and Type | Method | Description |
---|---|---|
default B |
withFile(File aFile) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFile(File aFile,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFile(File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
B |
withFile(File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFilePath(Class<?> aResourceClass,
String aFilePath) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFilePath(Class<?> aResourceClass,
String aFilePath,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
B |
withFilePath(Class<?> aResourceClass,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFilePath(String aFilePath) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFilePath(String aFilePath,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withFilePath(String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
ConfigLocator.getFolders() . |
default B |
withInputStream(InputStream aInputStream) |
Reads the properties from the given
InputStream . |
B |
withInputStream(InputStream aInputStream,
char... aDelimiters) |
Reads the properties from the given
InputStream . |
default B |
withUrl(URL aUrl) |
Loads the properties from the given
URL . |
B |
withUrl(URL aUrl,
char... aDelimiters) |
Loads the properties from the given
URL . |
default B withFile(File aFile) throws IOException, ParseException
ConfigLocator.getFolders()
.aFile
- The file of the properties to load.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFile(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
ConfigLocator.getFolders()
.aFile
- The file of the properties to load.aConfigLocator
- The ConfigLocator
specifying where to seek
for properties.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFile(File aFile, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aFile
- The file of the properties to load.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.B withFile(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aFile
- The file of the properties to load.aConfigLocator
- The ConfigLocator
specifying where to seek
for properties.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withInputStream(InputStream aInputStream) throws IOException, ParseException
InputStream
.aInputStream
- The InputStream
from which to read the
properties.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.B withInputStream(InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
InputStream
.aInputStream
- The InputStream
from which to read the
properties.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFilePath(String aFilePath) throws IOException, ParseException
ConfigLocator.getFolders()
.aFilePath
- The file of the properties file to load.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFilePath(String aFilePath, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aFilePath
- The file of the properties file to load.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFilePath(Class<?> aResourceClass, String aFilePath) throws IOException, ParseException
ConfigLocator.getFolders()
.aResourceClass
- The class which's class loader is to take care of
loading the properties (from inside a JAR).aFilePath
- The file of the properties file to load.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFilePath(Class<?> aResourceClass, String aFilePath, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aResourceClass
- The class which's class loader is to take care of
loading the properties (from inside a JAR).aFilePath
- The file of the properties file to load.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withFilePath(String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aFilePath
- The file of the properties file to load.aConfigLocator
- The ConfigLocator
specifying where to seek
for properties.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.B withFilePath(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
ConfigLocator.getFolders()
.aResourceClass
- The class which's class loader is to take care of
loading the properties (from inside a JAR).aFilePath
- The file of the properties file to load.aConfigLocator
- The ConfigLocator
specifying where to seek
for properties.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.default B withUrl(URL aUrl) throws IOException, ParseException
URL
.aUrl
- The URL
from which to read the properties.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.B withUrl(URL aUrl, char... aDelimiters) throws IOException, ParseException
URL
.aUrl
- The URL
from which to read the properties.aDelimiters
- The delimiters in the properties file to identity a
path delimiter.IOException
- thrown in case accessing or processing the properties
file failed.ParseException
- Signals that an error has been reached
unexpectedly while parsing the data to be loaded.Copyright © 2018. All rights reserved.