public interface ConfigurationService<K,T,C extends AbstractConfiguration> extends ConfigurationDao<K,T,C>, ChangeGenerator<C>
ConfigurationDao and in turn ConfigurationSource.Authorization, Inherent Caching, event listeners on any setter methods etc
ChangeGenerator and generates an event whenever ConfigurationDao.put(AbstractConfiguration) is called. The new configuration is passed as an event to all the ChangeListeners| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_CACHE_NAME
Configurations cached
|
NAMESPACE_DELIM| Modifier and Type | Method and Description |
|---|---|
void |
clearCache(String namespace)
Will clear the namespace hierarchy from the cache
|
Map<K,T> |
get(String namespace)
Get a Map of key name and corresponding
IConfiguration for the specific namespace. |
T |
get(String namespace,
K key) |
T |
get(String namespace,
K key,
Collection<Authorization> authorizations)
Will throw an exception if it did not find any matching result for the Config
Note: param matching is case insensitive |
List<Class> |
getConfigTypes() |
<CD extends ConfigurationDao<String,String,C>> |
getDao()
Dao backing this service
|
String |
keyGen(String namespace,
String key) |
C |
put(C config,
Collection<Authorization> authorizations) |
delete, getAll, getConfig, getConfig, getConfigs, getNamespaces, putdelete, load, load, savegetaddChangeListener, getListeners, notifyAllListeners, setListenersstatic final String CONFIGURATION_CACHE_NAME
T get(String namespace, K key, Collection<Authorization> authorizations) throws AuthorizationException
namespace - as Stringkey - as KCollection - of Authorization from the Component trying to access this configuration.AbstractConfigurationAuthorizationExceptionT get(String namespace, K key)
get in interface ConfigurationDao<K,T,C extends AbstractConfiguration>get in interface ConfigurationSource<K,T>namespace - as Stringkey - as StringMap<K,T> get(String namespace)
IConfiguration for the specific namespace.
get in interface ConfigurationSource<K,T>namespace - as StringIConfigurationvoid clearCache(String namespace)
namespace - C put(C config, Collection<Authorization> authorizations) throws AuthorizationException
config - as CCollection - of Authorization from the Component trying to access this configuration.AbstractConfigurationAuthorizationExceptionList<Class> getConfigTypes()
AbstractConfiguration by the App<CD extends ConfigurationDao<String,String,C>> CD getDao()
Copyright © 2018. All rights reserved.