public interface ConfigurationDao<K,T,C extends AbstractConfiguration> extends GenericDao<C>, ConfigurationSource<K,T>
AbstractConfigurationNAMESPACE_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, saveget, getC 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 StringAbstractConfigurationMap<K,T> getAll(String namespace)
AbstractConfiguration for the specific namespace.
ConfigurationSource.NAMESPACE_DELIM
This method respects hierarchy based on default convention.namespace - as StringAbstractConfigurationList<C> getConfigs(String namespace)
namespace - as StringCollection of Cvoid delete(C config)
delete in interface GenericDao<C extends AbstractConfiguration>Copyright © 2018. All rights reserved.