Interface ConfigurationLoader
- All Known Implementing Classes:
ConfigurationLoader.InputStreamConfigurationLoader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface ConfigurationLoader
Deprecated.
replaced by generic
ConfigurationLoader, will be removed in a future release- See Also:
one.microstream.storage.configuration
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConfigurationLoader.DefaultsDeprecated.static classConfigurationLoader.InputStreamConfigurationLoaderDeprecated. -
Method Summary
Modifier and Type Method Description static ConfigurationLoaderFromInputStream(InputStream inputStream)Deprecated.Tries to load the configuration from theInputStreaminputStream.static ConfigurationLoaderFromInputStream(InputStream inputStream, Charset charset)Deprecated.Tries to load the configuration from theInputStreaminputStream.static Stringload(String path)Deprecated.Loads the configuration from the given resource.static Stringload(String path, Charset charset)Deprecated.Loads the configuration from the given resource.StringloadConfiguration()Deprecated.Loads the configuration from the given resource.static StringloadFromFile(File file)Deprecated.Tries to load the configuration fromfile.static StringloadFromFile(File file, Charset charset)Deprecated.Tries to load the configuration fromfile.static StringloadFromPath(Path path)Deprecated.Tries to load the configuration frompath.static StringloadFromPath(Path path, Charset charset)Deprecated.Tries to load the configuration frompath.static StringloadFromUrl(URL url)Deprecated.Tries to load the configuration from the URLurl.static StringloadFromUrl(URL url, Charset charset)Deprecated.Tries to load the configuration from the URLurl.
-
Method Details
-
loadConfiguration
String loadConfiguration()Deprecated.Loads the configuration from the given resource.- Returns:
- the configuration resource's content.
- Throws:
StorageConfigurationException- if an error occurs while loading the resource
-
load
Deprecated.Loads the configuration from the given resource.The load order is as follows:
- The classpath
- As an URL
- As a file
- Parameters:
path- a classpath resource, a file path or an URL- Returns:
- the configuration resource's content.
- Throws:
StorageConfigurationException- if an error occurs while loading the resource
-
load
Deprecated.Loads the configuration from the given resource.The load order is as follows:
- The classpath
- As an URL
- As a file
- Parameters:
path- a classpath resource, a file path or an URLcharset- the charset used to load the configuration- Returns:
- the configuration resource's content.
- Throws:
StorageConfigurationException- if an error occurs while loading the resource
-
loadFromPath
Deprecated.Tries to load the configuration frompath.- Parameters:
path- file system path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
loadFromPath
Deprecated.Tries to load the configuration frompath.- Parameters:
path- file system pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
loadFromFile
Deprecated.Tries to load the configuration fromfile.- Parameters:
file- file path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
loadFromFile
Deprecated.Tries to load the configuration fromfile.- Parameters:
file- file pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
loadFromUrl
Deprecated.Tries to load the configuration from the URLurl.- Parameters:
url- URL path- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
loadFromUrl
Deprecated.Tries to load the configuration from the URLurl.- Parameters:
url- URL pathcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
FromInputStream
Deprecated.Tries to load the configuration from theInputStreaminputStream.- Parameters:
inputStream- the stream to read from- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-
FromInputStream
Deprecated.Tries to load the configuration from theInputStreaminputStream.- Parameters:
inputStream- the stream to read fromcharset- the charset used to load the configuration- Returns:
- the configuration
- Throws:
StorageConfigurationException- if the configuration couldn't be loaded
-