public abstract class StoreConfig
extends Object
Modifier | Constructor and Description |
---|---|
protected |
StoreConfig(Logger logger)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getKind()
Gets the store kind.
|
Optional<char[]> |
getPassword()
Gets the store password.
|
Optional<String> |
getPath()
Gets the store path.
|
Optional<String> |
getProvider()
Gets the store provider.
|
Optional<String> |
getType()
Gets the store type.
|
void |
setPassword(Optional<char[]> password)
Sets the store password.
|
void |
setPath(Optional<String> path)
Sets the store path.
|
void |
setProvider(Optional<String> provider)
Sets the store provider.
|
void |
setType(Optional<String> type)
Sets the store type.
|
protected StoreConfig(@Nonnull Logger logger)
logger
- The logger instance to use.@Nonnull @CheckReturnValue public final Optional<char[]> getPassword()
@Nonnull @CheckReturnValue public final Optional<String> getPath()
@Nonnull @CheckReturnValue public final Optional<String> getProvider()
@Nonnull @CheckReturnValue public final Optional<String> getType()
public void setPassword(@Nonnull Optional<char[]> password)
password
- The optional store password.public final void setPath(@Nonnull Optional<String> path) throws FileNotFoundException
path
- The optional path to the store.FileNotFoundException
- When appropriate.public final void setProvider(@Nonnull Optional<String> provider)
provider
- The optional store provider.public final void setType(@Nonnull Optional<String> type)
type
- The optional store type.@Nonnull @CheckReturnValue protected abstract String getKind()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.