Package org.onosproject.net.config
Class NetworkConfigRegistryAdapter
- java.lang.Object
-
- org.onosproject.net.config.NetworkConfigServiceAdapter
-
- org.onosproject.net.config.NetworkConfigRegistryAdapter
-
- All Implemented Interfaces:
ListenerService<NetworkConfigEvent,NetworkConfigListener>
,NetworkConfigRegistry
,NetworkConfigService
public class NetworkConfigRegistryAdapter extends NetworkConfigServiceAdapter implements NetworkConfigRegistry
Test adapter for network configuration service registry.
-
-
Constructor Summary
Constructors Constructor Description NetworkConfigRegistryAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<ConfigFactory>
getConfigFactories()
Returns set of all registered configuration factories.<S,C extends Config<S>>
java.util.Set<ConfigFactory<S,C>>getConfigFactories(java.lang.Class<S> subjectClass)
Returns set of all configuration factories registered for the specified class of subject.<S,C extends Config<S>>
ConfigFactory<S,C>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.-
Methods inherited from class org.onosproject.net.config.NetworkConfigServiceAdapter
addConfig, addListener, applyConfig, applyConfig, getConfig, getConfigClass, getConfigs, getSubjectClasses, getSubjectFactory, getSubjectFactory, getSubjects, getSubjects, removeConfig, removeConfig, removeConfig, removeConfig, removeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onosproject.event.ListenerService
addListener, removeListener
-
Methods inherited from interface org.onosproject.net.config.NetworkConfigService
addConfig, applyConfig, applyConfig, getConfig, getConfigClass, getConfigs, getSubjectClasses, getSubjectFactory, getSubjectFactory, getSubjects, getSubjects, removeConfig, removeConfig, removeConfig, removeConfig
-
-
-
-
Method Detail
-
registerConfigFactory
public void registerConfigFactory(ConfigFactory configFactory)
Description copied from interface:NetworkConfigRegistry
Registers the specified configuration factory.- Specified by:
registerConfigFactory
in interfaceNetworkConfigRegistry
- Parameters:
configFactory
- configuration factory
-
unregisterConfigFactory
public void unregisterConfigFactory(ConfigFactory configFactory)
Description copied from interface:NetworkConfigRegistry
Unregisters the specified configuration factory.- Specified by:
unregisterConfigFactory
in interfaceNetworkConfigRegistry
- Parameters:
configFactory
- configuration factory
-
getConfigFactories
public java.util.Set<ConfigFactory> getConfigFactories()
Description copied from interface:NetworkConfigRegistry
Returns set of all registered configuration factories.- Specified by:
getConfigFactories
in interfaceNetworkConfigRegistry
- Returns:
- set of config factories
-
getConfigFactories
public <S,C extends Config<S>> java.util.Set<ConfigFactory<S,C>> getConfigFactories(java.lang.Class<S> subjectClass)
Description copied from interface:NetworkConfigRegistry
Returns set of all configuration factories registered for the specified class of subject.- Specified by:
getConfigFactories
in interfaceNetworkConfigRegistry
- Type Parameters:
S
- type of subjectC
- type of configuration- Parameters:
subjectClass
- subject class- Returns:
- set of config factories
-
getConfigFactory
public <S,C extends Config<S>> ConfigFactory<S,C> getConfigFactory(java.lang.Class<C> configClass)
Description copied from interface:NetworkConfigRegistry
Returns the configuration factory that produces the specified class of configurations.- Specified by:
getConfigFactory
in interfaceNetworkConfigRegistry
- Type Parameters:
S
- type of subjectC
- type of configuration- Parameters:
configClass
- configuration class- Returns:
- config factory
-
-