Package org.kiwiproject.config.provider
Class SharedStorageConfigProvider
- java.lang.Object
-
- org.kiwiproject.config.provider.SharedStorageConfigProvider
-
- All Implemented Interfaces:
ConfigProvider
public class SharedStorageConfigProvider extends Object implements ConfigProvider
Config provider that determines the directory path that will be used for shared storage between services.Default resolution lookup keys are as follows:
- System Property: kiwi.shared.storage.path
- Environment Variable: KIWI_SHARED_STORAGE_PATH
- External Config File: shared.storage.path
- See Also:
for resolution order
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProvide()
Determines if a provider has enough environmental awareness to provide data.Map<String,ResolvedBy>
getResolvedBy()
Returns a mapping of config fields to how the field was resolved.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kiwiproject.config.provider.ConfigProvider
canNotProvide
-
-
-
-
Method Detail
-
canProvide
public boolean canProvide()
Description copied from interface:ConfigProvider
Determines if a provider has enough environmental awareness to provide data.- Specified by:
canProvide
in interfaceConfigProvider
- Returns:
true
if the provider can provide data, otherwisefalse
-
getResolvedBy
public Map<String,ResolvedBy> getResolvedBy()
Description copied from interface:ConfigProvider
Returns a mapping of config fields to how the field was resolved.- Specified by:
getResolvedBy
in interfaceConfigProvider
- Returns:
- a mapping of config fields to how the field was resolved
- See Also:
ResolvedBy
-
-