Class CommoditiesConfigAdapter
- java.lang.Object
-
- com.caplin.motif.commodities.config.CommoditiesConfigAdapter
-
public final class CommoditiesConfigAdapter extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
registerConfigProvider(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.static void
registerConfigProvider(com.caplin.datasource.DataSource dataSource, java.lang.String namespace, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.
-
-
-
Method Detail
-
registerConfigProvider
public static void registerConfigProvider(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.- Parameters:
dataSource
- the dataSource to bind the provider to.provider
- the CachedObjectProvider that will receive the config requests
-
registerConfigProvider
public static void registerConfigProvider(com.caplin.datasource.DataSource dataSource, java.lang.String namespace, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.- Parameters:
dataSource
- the dataSource to bind the provider to.namespace
- the namespace to register the provider on, defaults are defined inConfigSubjectNamespacing.DefaultNamespaces
provider
- the CachedObjectProvider that will receive the config requests
-
-