public class SettingDefinitionProviderRepository extends AbstractServiceLoaderRepository<SettingDefinitionProvider>
SettingDefinitionProvider
implementations.
Modifier and Type | Field and Description |
---|---|
private Map<String,SettingDefinition<?,?>> |
definitionsByKey |
private static org.slf4j.Logger |
LOG |
private SetMultiMap<SettingDefinition<?,?>,SettingDefinitionProvider> |
providersByDefinition |
private Set<SettingDefinition<?,?>> |
settingDefinitions |
Constructor and Description |
---|
SettingDefinitionProviderRepository()
Constructs a new repository.
|
Modifier and Type | Method and Description |
---|---|
SettingDefinition<?,?> |
getDefinition(String key)
Gets the definition for the specified key.
|
Set<SettingDefinitionProvider> |
getProviders(SettingDefinition<?,?> setting)
Returns all providers that declared a specific setting.
|
Set<SettingDefinition<?,?>> |
getSettingDefinitions() |
protected void |
processImplementations(Set<SettingDefinitionProvider> implementations) |
checkConnectionProviderIdentifications, load, update
private static final org.slf4j.Logger LOG
private Map<String,SettingDefinition<?,?>> definitionsByKey
private Set<SettingDefinition<?,?>> settingDefinitions
private SetMultiMap<SettingDefinition<?,?>,SettingDefinitionProvider> providersByDefinition
public SettingDefinitionProviderRepository() throws ConfigurationException
ConfigurationException
- if there is a problem while loading implementationspublic Set<SettingDefinition<?,?>> getSettingDefinitions()
public Set<SettingDefinitionProvider> getProviders(SettingDefinition<?,?> setting)
setting
- the setting
public SettingDefinition<?,?> getDefinition(String key)
key
- the key
null
if none is knownprotected void processImplementations(Set<SettingDefinitionProvider> implementations) throws ConfigurationException
processImplementations
in class AbstractServiceLoaderRepository<SettingDefinitionProvider>
ConfigurationException
Copyright © 2012-2015 52north.org. All Rights Reserved.