Class FXConfigAdapter


  • public class FXConfigAdapter
    extends CachedAdapter

    An FXConfigAdapter services trading capabilities to provide for the Config, Sales Config and TOBO Config subjects

    • 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 in TradeSubjectNamespacing.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 in TradeSubjectNamespacing.DefaultNamespaces
        provider - the CachedObjectProvider that will receive the config requests