public class PricingAdapterConfigurationBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTER_NAME |
Constructor and Description |
---|
PricingAdapterConfigurationBuilder()
This class produces a PricingAdapterConfiguration which can be used to instantiate a
PricingAdapter . |
Modifier and Type | Method and Description |
---|---|
PricingAdapterConfigurationBuilder |
addSubjectMapper(SubjectMapper subjectMapper)
Adds a custom
SubjectMapper to extend the PricingAdapter's default subscription behaviour. |
PricingAdapterConfiguration |
build()
Creates an instance of PricingAdapterConfiguration which can be used to instantiate a PricingAdapter.
|
PricingAdapterConfigurationBuilder |
setAdapterConfigurationListener(AdapterConfigurationListener listener)
Sets a custom
AdapterConfigurationListener to extend the
PricingAdapter's default behaviour. |
PricingAdapterConfigurationBuilder |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets a custom
ConfigurationLoader to replace the
PricingAdapter's default behaviour. |
PricingAdapterConfigurationBuilder |
setDataSource(com.caplin.datasource.DataSource dataSource)
Sets a custom
DataSource to extend the
PricingAdapter's default behaviour. |
PricingAdapterConfigurationBuilder |
setInstrumentProvider(InstrumentProvider instrumentProvider)
Sets a custom
InstrumentProvider to replace the default InstrumentProvider |
PricingAdapterConfigurationBuilder |
setRatesServiceProvider(RatesServiceProvider ratesServiceProvider)
Sets a custom
RatesServiceProvider to replace the default RatesServiceProvider. |
PricingAdapterConfigurationBuilder |
setSubscriptionParserFactory(SubscriptionRequestFactory subscriptionParserFactory)
Sets a custom
SubscriptionRequestFactory to replace the default PricingSubscriptionParserFactory of the
standard TrAPI connection. |
PricingAdapterConfigurationBuilder |
setUserManager(UserManager userManager)
Sets a custom
UserManager to extend the PricingAdapter's default behaviour. |
public static final java.lang.String ADAPTER_NAME
public PricingAdapterConfigurationBuilder() throws ConfigurationLoaderException
PricingAdapter
.ConfigurationLoaderException
public PricingAdapterConfigurationBuilder setUserManager(UserManager userManager)
UserManager
to extend the PricingAdapter's default behaviour.userManager
- a custom UserManager
UserManager
public PricingAdapterConfigurationBuilder setAdapterConfigurationListener(AdapterConfigurationListener listener)
AdapterConfigurationListener
to extend the
PricingAdapter's default behaviour.listener
- a custom AdapterConfigurationListener
AdapterConfigurationListener
public PricingAdapterConfigurationBuilder setDataSource(com.caplin.datasource.DataSource dataSource)
DataSource
to extend the
PricingAdapter's default behaviour.dataSource
- a custom DataSource
DataSource
public PricingAdapterConfigurationBuilder setConfigurationLoader(ConfigurationLoader configurationLoader)
ConfigurationLoader
to replace the
PricingAdapter's default behaviour.configurationLoader
- a custom ConfigurationLoader
ConfigurationLoader
public PricingAdapterConfigurationBuilder setRatesServiceProvider(RatesServiceProvider ratesServiceProvider)
RatesServiceProvider
to replace the default RatesServiceProvider.ratesServiceProvider
- - a custom RatesServiceProvider
public PricingAdapterConfigurationBuilder setSubscriptionParserFactory(SubscriptionRequestFactory subscriptionParserFactory)
SubscriptionRequestFactory
to replace the default PricingSubscriptionParserFactory of the
standard TrAPI connection.subscriptionParserFactory
- - a custom SubscriptionRequestFactory
public PricingAdapterConfigurationBuilder setInstrumentProvider(InstrumentProvider instrumentProvider)
InstrumentProvider
to replace the default InstrumentProviderinstrumentProvider
- a custom InstrumentProvider
public PricingAdapterConfigurationBuilder addSubjectMapper(SubjectMapper subjectMapper)
SubjectMapper
to extend the PricingAdapter's default subscription behaviour.
Subject mappers will be be applied in the order they are added.subjectMapper
- public PricingAdapterConfiguration build()
Copyright © 2019 Caplin Systems.