Interface FileStoresConfigurationLoader
- All Known Implementing Classes:
JiraHomeFileStoresConfigurationLoader
public interface FileStoresConfigurationLoader
This class handles loading filestore configuration.
- Since:
- 9.9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the configuration file exists.Optional<io.atlassian.fugue.Either<RuntimeException, FileStoresConfig>> Reads and parses theFileStoresConfigfrom its permanent store.
-
Method Details
-
configExists
boolean configExists()Returns true if the configuration file exists.- Returns:
- whether the config file exists.
-
loadConfig
Reads and parses theFileStoresConfigfrom its permanent store.- Returns:
Optional.empty()if the config file did not exist when it was attempted to be parsed, otherwise anOptionalwrapping anEitherthat contains aRuntimeExceptionif there was an error while parsing the config, or aFileStoresConfigif the config was parsed successfully.
-