@Beta public interface NetworkConfigRegistry extends NetworkConfigService
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, 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 factoryjava.util.Set<ConfigFactory> getConfigFactories()
<S,C extends Config<S>> java.util.Set<ConfigFactory<S,C>> getConfigFactories(java.lang.Class<S> subjectClass)
S
- type of subjectC
- type of configurationsubjectClass
- subject class<S,C extends Config<S>> ConfigFactory<S,C> getConfigFactory(java.lang.Class<C> configClass)
S
- type of subjectC
- type of configurationconfigClass
- configuration class