Package com.caplin.motif.fx.config
Class FXConfigAdapter
- java.lang.Object
-
- com.caplin.motif.datasource.CachedAdapter
-
- com.caplin.motif.fx.config.FXConfigAdapter
-
public class FXConfigAdapter extends CachedAdapter
An FXConfigAdapter services trading capabilities to provide for the Config, Sales Config and TOBO Config subjects
-
-
Constructor Summary
Constructors Constructor Description FXConfigAdapter(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<Config,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.void
registerConfigProvider(java.lang.String namespace, CachedObjectProvider<Config,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.void
registerSalesConfigProvider(CachedObjectProvider<SalesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales config requests.void
registerSalesConfigProvider(java.lang.String namespace, CachedObjectProvider<SalesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales config requests.void
registerSalesToboConfigProvider(CachedObjectProvider<ToboConfig,SalesToboConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales TOBO config requests.void
registerSalesToboConfigProvider(java.lang.String namespace, CachedObjectProvider<ToboConfig,SalesToboConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales TOBO config requests.-
Methods inherited from class com.caplin.motif.datasource.CachedAdapter
clearCache, createActivePublisher, createActivePublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher
-
-
-
-
Constructor Detail
-
FXConfigAdapter
public FXConfigAdapter(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<Config,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to config requests.- Parameters:
provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesConfigProvider
public void registerSalesConfigProvider(CachedObjectProvider<SalesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales config requests.- Parameters:
provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesToboConfigProvider
public void registerSalesToboConfigProvider(CachedObjectProvider<ToboConfig,SalesToboConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales TOBO config requests.- Parameters:
provider
- the CachedObjectProvider that will receive the config requests
-
registerConfigProvider
public void registerConfigProvider(java.lang.String namespace, CachedObjectProvider<Config,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 inTradeSubjectNamespacing.DefaultNamespaces
provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesConfigProvider
public void registerSalesConfigProvider(java.lang.String namespace, CachedObjectProvider<SalesConfig,ConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales config requests.- Parameters:
namespace
- the namespace to register the provider on, defaults are defined inTradeSubjectNamespacing.DefaultNamespaces
provider
- the CachedObjectProvider that will receive the config requests
-
registerSalesToboConfigProvider
public void registerSalesToboConfigProvider(java.lang.String namespace, CachedObjectProvider<ToboConfig,SalesToboConfigSubjectInfo> provider)
Registers a provider that is capable of responding to sales TOBO config requests.- Parameters:
namespace
- the namespace to register the provider on, defaults are defined inTradeSubjectNamespacing.DefaultNamespaces
provider
- the CachedObjectProvider that will receive the config requests
-
-