Class CommoditiesTradeAdapter

java.lang.Object
com.caplin.motif.datasource.CachedAdapter
com.caplin.motif.commodities.trading.CommoditiesTradeAdapter

public class CommoditiesTradeAdapter extends CachedAdapter
  • Constructor Details

    • CommoditiesTradeAdapter

      public CommoditiesTradeAdapter(TradeAdapter tradeAdapter)
  • Method Details

    • registerCommoditiesSettlementTradeListenerFactory

      public void registerCommoditiesSettlementTradeListenerFactory(CommoditiesSettlementTradeListenerFactory factory)
      Registers a factory that will listen to Commodities Settlement Trade workflows initiated from the client.
      Parameters:
      factory - the factory that will be asked to create the CommoditiesSettlementTradeListener
    • registerCommoditiesTradeConfirmationProvider

      public void registerCommoditiesTradeConfirmationProvider(CachedMessageProvider<TradeSubjectInfo> provider)
      Registers a provider that is capable of responding to Commodities trade confirmation requests.
      Parameters:
      provider - the CachedMessageProvider that will receive the Commodities trade confirmation requests
    • registerCommoditiesInvoiceProvider

      public void registerCommoditiesInvoiceProvider(CachedMessageProvider<TradeSubjectInfo> provider)
      Registers a provider that is capable of responding to Commodities invoice requests.
      Parameters:
      provider - the CachedMessageProvider that will receive the Commodities invoice requests