@Beta public interface NetworkConfigRegistry extends NetworkConfigService
Modifier and Type | Method and Description |
---|---|
Set<ConfigFactory> |
getConfigFactories()
Returns set of all registered configuration factories.
|
<S,C extends Config<S>> |
getConfigFactories(Class<S> subjectClass)
Returns set of all configuration factories registered for the specified
class of subject.
|
<S,C extends Config<S>> |
getConfigFactory(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, applyConfig, applyConfig, getConfig, getConfigClass, getConfigs, getSubjectClasses, getSubjectFactory, getSubjectFactory, getSubjects, getSubjects, removeConfig, removeConfig, removeConfig, removeConfig
addListener, removeListener
void registerConfigFactory(ConfigFactory configFactory)
configFactory
- configuration factoryvoid unregisterConfigFactory(ConfigFactory configFactory)
configFactory
- configuration factorySet<ConfigFactory> getConfigFactories()
<S,C extends Config<S>> Set<ConfigFactory<S,C>> getConfigFactories(Class<S> subjectClass)
S
- type of subjectC
- type of configurationsubjectClass
- subject class<S,C extends Config<S>> ConfigFactory<S,C> getConfigFactory(Class<C> configClass)
S
- type of subjectC
- type of configurationconfigClass
- configuration class