public class CalendarConfigurationBuilder
extends java.lang.Object
CalendarAdapter
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTER_NAME |
Constructor and Description |
---|
CalendarConfigurationBuilder() |
Modifier and Type | Method and Description |
---|---|
CalendarConfiguration |
build()
Creates an instance of CalendarConfiguration which can be used to instantiate a CalendarAdapter.
|
CalendarConfigurationBuilder |
setAdapterConfigurationListener(AdapterConfigurationListener listener)
Sets a custom AdapterConfigurationListener to load
custom configurations.
|
CalendarConfigurationBuilder |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets a custom
ConfigurationLoader to replace the
CalendarAdapter's default behaviour. |
CalendarConfigurationBuilder |
setDataSource(com.caplin.datasource.DataSource dataSource)
Sets a custom DataSource to extend the CalendarAdapter's default behaviour.
|
CalendarConfigurationBuilder |
setDataTransformer(CalendarDataTransformer dataTransformer)
Sets a custom CalendarDataTransformer to extend the
CalendarAdapter's default behaviour.
|
CalendarConfigurationBuilder |
setInstrumentProvider(InstrumentProvider instrumentProvider)
Sets a custom InstrumentProvider to replace the CalendarAdapter's default behaviour.
|
CalendarConfigurationBuilder |
setSettlementSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETSettlementDateSubjectInfo> settlementSubjectParser) |
CalendarConfigurationBuilder |
setTenorSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETTenorDateSubjectInfo> tenorSubjectParser) |
CalendarConfigurationBuilder |
setUserManager(UserManager userManager)
Sets a custom UserManager to replace the CalendarAdapter's default behaviour.
|
public static final java.lang.String ADAPTER_NAME
public CalendarConfigurationBuilder() throws ConfigurationLoaderException
ConfigurationLoaderException
public CalendarConfigurationBuilder setDataTransformer(CalendarDataTransformer dataTransformer)
dataTransformer
- a custom CalendarDataTransformer
public CalendarConfigurationBuilder setAdapterConfigurationListener(AdapterConfigurationListener listener)
listener
- The listener that will receive a callback to load custom configurationspublic CalendarConfigurationBuilder setDataSource(com.caplin.datasource.DataSource dataSource)
dataSource
- a custom DataSource
public CalendarConfigurationBuilder setConfigurationLoader(ConfigurationLoader configurationLoader)
ConfigurationLoader
to replace the
CalendarAdapter's default behaviour.configurationLoader
- a custom ConfigurationLoader
public CalendarConfigurationBuilder setInstrumentProvider(InstrumentProvider instrumentProvider)
instrumentProvider
- a custom InstrumentProvider
public CalendarConfigurationBuilder setUserManager(UserManager userManager)
userManager
- a custom UserManager
public CalendarConfigurationBuilder setSettlementSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETSettlementDateSubjectInfo> settlementSubjectParser)
public CalendarConfigurationBuilder setTenorSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETTenorDateSubjectInfo> tenorSubjectParser)
public CalendarConfiguration build()
Copyright © 2019 Caplin Systems.