Class ResourceConfiguration
- java.lang.Object
-
- com.backpackcloud.zipper.impl.configuration.ResourceConfiguration
-
- All Implemented Interfaces:
Configuration,Supplier<String>
public class ResourceConfiguration extends Object implements Configuration
-
-
Field Summary
-
Fields inherited from interface com.backpackcloud.zipper.Configuration
NOT_SUPPLIED
-
-
Constructor Summary
Constructors Constructor Description ResourceConfiguration(String resourcePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget()Gets the value of this configuration.booleanisSet()Checks if this source has some configuration set.Stringread()Assumes this configuration value is pointing to an external location and reads the value at that location.List<String>readLines()Assumes this configuration value is pointing to an external location and reads the lines at that location.
-
-
-
Constructor Detail
-
ResourceConfiguration
public ResourceConfiguration(String resourcePath)
-
-
Method Detail
-
isSet
public boolean isSet()
Description copied from interface:ConfigurationChecks if this source has some configuration set.- Specified by:
isSetin interfaceConfiguration- Returns:
trueif this source holds any configuration value.
-
get
public String get()
Description copied from interface:ConfigurationGets the value of this configuration.- Specified by:
getin interfaceConfiguration- Specified by:
getin interfaceSupplier<String>- Returns:
- the configuration value.
-
read
public String read()
Description copied from interface:ConfigurationAssumes this configuration value is pointing to an external location and reads the value at that location.- Specified by:
readin interfaceConfiguration- Returns:
- the value stored in the location defined by this configuration.
-
readLines
public List<String> readLines()
Description copied from interface:ConfigurationAssumes this configuration value is pointing to an external location and reads the lines at that location.- Specified by:
readLinesin interfaceConfiguration- Returns:
- the lines stored in the location defined by this configuration.
-
-