public class RemoteMountConfigReader extends java.lang.Object implements RemoteMountConfigSource
RemoteMountConfigSource
by extracting and validating
values from an underlying MountPointsConfig
.Constructor and Description |
---|
RemoteMountConfigReader(MountPointsConfig config)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enableTranslation() |
java.util.List<RemoteMount> |
remoteToLocalMap()
Lists the configured remote-to-local mappings.
|
public RemoteMountConfigReader(MountPointsConfig config)
config
- the configuration as obtained by the configuration
provider.java.lang.NullPointerException
- if the argument is null
.public boolean enableTranslation()
enableTranslation
in interface RemoteMountConfigSource
public java.util.List<RemoteMount> remoteToLocalMap()
RemoteMountConfigSource
null
, then an empty list is returned. Also, any null
elements are filtered out.remoteToLocalMap
in interface RemoteMountConfigSource