Package com.caplin.motif.mm.trading
Class MMTradeAdapter
- java.lang.Object
-
- com.caplin.motif.mm.trading.MMTradeAdapter
-
@Beta public class MMTradeAdapter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MMTradeAdapter(TradeAdapter tradeAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerCapitalIncreaseTradeListenerFactory(MMCapitalIncreaseTradeListenerFactory factory)
Registers a factory that will listen to MMCapitalIncrease Trade workflows initiated from the client.void
registerCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig,MMCurrencyConfigSubjectInfo> provider)
Registers a provider that is capable of responding to money markets currency config requests<T extends SubjectInfo>
voidregisterCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig,T> provider, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser)
Used to register a provider that is capable of responding to money markets currency config requests on non-standard subjectsvoid
registerRFSTradeListenerFactory(MMRFSTradeListenerFactory factory)
Registers a factory that will listen to Money Markets RFS Trade workflows initiated from the client.void
registerSalesInterventionTradeListenerFactory(MMSalesInterventionTradeListenerFactory factory)
Registers a factory that will listen to MMSalesIntervention Trade workflows initiated from the client.void
registerSettlementTradeListenerFactory(MMSettlementTradeListenerFactory factory)
Registers a factory that will listen to MMSettlement Trade workflows initiated from the client.
-
-
-
Constructor Detail
-
MMTradeAdapter
public MMTradeAdapter(TradeAdapter tradeAdapter)
-
-
Method Detail
-
registerRFSTradeListenerFactory
public void registerRFSTradeListenerFactory(MMRFSTradeListenerFactory factory)
Registers a factory that will listen to Money Markets RFS Trade workflows initiated from the client.- Parameters:
factory
- the factory that will be asked to create the MMRFSTradeListener
-
registerSalesInterventionTradeListenerFactory
public void registerSalesInterventionTradeListenerFactory(MMSalesInterventionTradeListenerFactory factory)
Registers a factory that will listen to MMSalesIntervention Trade workflows initiated from the client.- Parameters:
factory
- the factory that will be asked to create the MMInterventionTradeListener
-
registerCapitalIncreaseTradeListenerFactory
public void registerCapitalIncreaseTradeListenerFactory(MMCapitalIncreaseTradeListenerFactory factory)
Registers a factory that will listen to MMCapitalIncrease Trade workflows initiated from the client.- Parameters:
factory
- the factory that will be asked to create the MMCapitalIncreaseTradeListener
-
registerSettlementTradeListenerFactory
public void registerSettlementTradeListenerFactory(MMSettlementTradeListenerFactory factory)
Registers a factory that will listen to MMSettlement Trade workflows initiated from the client.- Parameters:
factory
- the factory that will be asked to create the MMSettlementTradeListener
-
registerCurrencyConfigProvider
public void registerCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig,MMCurrencyConfigSubjectInfo> provider)
Registers a provider that is capable of responding to money markets currency config requests- Parameters:
provider
- The JsonDataProvider that will receive the money markets currency config requests
-
registerCurrencyConfigProvider
public <T extends SubjectInfo> void registerCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig,T> provider, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser)
Used to register a provider that is capable of responding to money markets currency config requests on non-standard subjects- Parameters:
provider
- The JsonDataProvider that will receive the money markets currency config requestsnamespace
- A namespace that matches the format of your custom subjectssubjectParser
- A parser that will turn the requested subject into your own custom subclass ofSubjectInfo
-
-