public class NetworkConfigRegistryAdapter extends NetworkConfigServiceAdapter implements NetworkConfigRegistry
Constructor and Description |
---|
NetworkConfigRegistryAdapter() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConfigFactory> |
getConfigFactories()
Returns set of all registered configuration factories.
|
<S,C extends Config<S>> |
getConfigFactories(java.lang.Class<S> subjectClass)
Returns set of all configuration factories registered for the specified
class of subject.
|
<S,C extends Config<S>> |
getConfigFactory(java.lang.Class<C> configClass)
Returns the configuration factory that produces the specified class of
configurations.
|
void |
registerConfigFactory(ConfigFactory configFactory)
Registers the specified configuration factory.
|
void |
unregisterConfigFactory(ConfigFactory configFactory)
Unregisters the specified configuration factory.
|
addConfig, addListener, applyConfig, applyConfig, getConfig, getConfigClass, getConfigs, getSubjectClasses, getSubjectFactory, getSubjectFactory, getSubjects, getSubjects, removeConfig, removeConfig, removeConfig, removeConfig, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConfig, applyConfig, applyConfig, getConfig, getConfigClass, getConfigs, getSubjectClasses, getSubjectFactory, getSubjectFactory, getSubjects, getSubjects, removeConfig, removeConfig, removeConfig, removeConfig
addListener, removeListener
public void registerConfigFactory(ConfigFactory configFactory)
NetworkConfigRegistry
registerConfigFactory
in interface NetworkConfigRegistry
configFactory
- configuration factorypublic void unregisterConfigFactory(ConfigFactory configFactory)
NetworkConfigRegistry
unregisterConfigFactory
in interface NetworkConfigRegistry
configFactory
- configuration factorypublic java.util.Set<ConfigFactory> getConfigFactories()
NetworkConfigRegistry
getConfigFactories
in interface NetworkConfigRegistry
public <S,C extends Config<S>> java.util.Set<ConfigFactory<S,C>> getConfigFactories(java.lang.Class<S> subjectClass)
NetworkConfigRegistry
getConfigFactories
in interface NetworkConfigRegistry
S
- type of subjectC
- type of configurationsubjectClass
- subject classpublic <S,C extends Config<S>> ConfigFactory<S,C> getConfigFactory(java.lang.Class<C> configClass)
NetworkConfigRegistry
getConfigFactory
in interface NetworkConfigRegistry
S
- type of subjectC
- type of configurationconfigClass
- configuration class