Package com.caplin.motif.config
Class UserConfigAdapter
java.lang.Object
com.caplin.motif.config.UserConfigAdapter
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerConfigProvider
(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<Config, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to config requests.static void
registerConfigProvider
(com.caplin.datasource.DataSource dataSource, String namespace, CachedObjectProvider<Config, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to config requests.static void
registerSalesConfigProvider
(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<SalesConfig, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales config requests.static void
registerSalesConfigProvider
(com.caplin.datasource.DataSource dataSource, String namespace, CachedObjectProvider<SalesConfig, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales config requests.static void
registerSalesTOBOConfigProvider
(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<Config, SalesTOBOConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales TOBO config requests.static void
registerSalesTOBOConfigProvider
(com.caplin.datasource.DataSource dataSource, String namespace, CachedObjectProvider<Config, SalesTOBOConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales TOBO config requests.
-
Method Details
-
registerConfigProvider
public static void registerConfigProvider(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<Config, 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, String namespace, CachedObjectProvider<Config, 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
-
registerSalesTOBOConfigProvider
public static void registerSalesTOBOConfigProvider(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<Config, SalesTOBOConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales TOBO config requests.- Parameters:
dataSource
- the dataSource to bind the provider to.provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesTOBOConfigProvider
public static void registerSalesTOBOConfigProvider(com.caplin.datasource.DataSource dataSource, String namespace, CachedObjectProvider<Config, SalesTOBOConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales TOBO 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
-
registerSalesConfigProvider
public static void registerSalesConfigProvider(com.caplin.datasource.DataSource dataSource, CachedObjectProvider<SalesConfig, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales config requests.- Parameters:
dataSource
- the dataSource to bind the provider to.provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesConfigProvider
public static void registerSalesConfigProvider(com.caplin.datasource.DataSource dataSource, String namespace, CachedObjectProvider<SalesConfig, ConfigSubjectInfo> provider) Registers a provider that is capable of responding to sales 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
-