public interface ConfigurationDao<K,T,C extends AbstractConfiguration> extends GenericDao<C>, ConfigurationSource<K,T>
AbstractConfiguration
NAMESPACE_DELIM
Modifier and Type | Method and Description |
---|---|
void |
delete(C config)
Remove a configuration
|
T |
get(String namespace,
K key) |
Map<K,T> |
getAll(String namespace)
Get a Map of key name and corresponding
AbstractConfiguration for the specific namespace. |
C |
getConfig(C proxy) |
C |
getConfig(String namespace,
String key) |
List<C> |
getConfigs(String namespace)
Get configurations for a namespace and nested namesapces, as a collection of C
|
List<String> |
getNamespaces()
Get list of namespaces
|
C |
put(C config)
Updates the configurations and returns the updated configuration object for chaining
|
delete, load, load, save
get, get
C put(C config)
config
- T get(String namespace, K key)
get
in interface ConfigurationSource<K,T>
namespace
- as Stringkey
- as StringC getConfig(String namespace, String key)
namespace
- as Stringkey
- as StringAbstractConfiguration
Map<K,T> getAll(String namespace)
AbstractConfiguration
for the specific namespace.
ConfigurationSource.NAMESPACE_DELIM
This method respects hierarchy based on default convention.namespace
- as StringAbstractConfiguration
List<C> getConfigs(String namespace)
namespace
- as StringCollection
of Cvoid delete(C config)
delete
in interface GenericDao<C extends AbstractConfiguration>
Copyright © 2018. All rights reserved.