Class CommoditiesTradeAdapter
- java.lang.Object
-
- com.caplin.motif.datasource.CachedAdapter
-
- com.caplin.motif.commodities.trading.CommoditiesTradeAdapter
-
public class CommoditiesTradeAdapter extends CachedAdapter
-
-
Field Summary
-
Fields inherited from class com.caplin.motif.datasource.CachedAdapter
dataSource
-
-
Constructor Summary
Constructors Constructor Description CommoditiesTradeAdapter(TradeAdapter tradeAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerCommoditiesInvoiceProvider(CachedMessageProvider<TradeSubjectInfo> provider)
Registers a provider that is capable of responding to Commodities invoice requests.void
registerCommoditiesSettlementTradeListenerFactory(CommoditiesSettlementTradeListenerFactory factory)
Registers a factory that will listen to Commodities Settlement Trade workflows initiated from the client.void
registerCommoditiesTradeConfirmationProvider(CachedMessageProvider<TradeSubjectInfo> provider)
Registers a provider that is capable of responding to Commodities trade confirmation requests.-
Methods inherited from class com.caplin.motif.datasource.CachedAdapter
clearCache, createActivePublisher, createActivePublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher
-
-
-
-
Constructor Detail
-
CommoditiesTradeAdapter
public CommoditiesTradeAdapter(TradeAdapter tradeAdapter)
-
-
Method Detail
-
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
-
-