Class CommoditiesConfigAdapter
- java.lang.Object
-
- com.caplin.motif.datasource.CachedAdapter
-
- com.caplin.motif.commodities.config.CommoditiesConfigAdapter
-
public class CommoditiesConfigAdapter extends CachedAdapter
An FXConfigAdapter services trading capabilities to provide for the Config, Sales Config and TOBO Config subjects
-
-
Constructor Summary
Constructors Constructor Description CommoditiesConfigAdapter(com.caplin.datasource.DataSource datasource)
Constructs an FXConfigAdapter that will utilise the specified TradeAdapter and its configuration for communication with the motif.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerConfigProvider(CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.void
registerConfigProvider(java.lang.String namespace, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.-
Methods inherited from class com.caplin.motif.datasource.CachedAdapter
clearCache, createActivePublisher, createActivePublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher
-
-
-
-
Constructor Detail
-
CommoditiesConfigAdapter
public CommoditiesConfigAdapter(com.caplin.datasource.DataSource datasource)
Constructs an FXConfigAdapter that will utilise the specified TradeAdapter and its configuration for communication with the motif.
Prefer this constructor if you will be implementing multiple config adapters in a single adapter.
- Parameters:
datasource
- The DataSource
-
-
Method Detail
-
registerConfigProvider
public void registerConfigProvider(CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.- Parameters:
provider
- the CachedObjectProvider that will receive the config requests
-
registerConfigProvider
public void registerConfigProvider(java.lang.String namespace, CachedObjectProvider<CommoditiesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.- Parameters:
namespace
- the namespace to register the provider on, defaults are defined inConfigSubjectNamespacing.DefaultNamespaces
provider
- the CachedObjectProvider that will receive the config requests
-
-