Class CalendarConfigurationBuilder
java.lang.Object
com.caplin.motif.fx.ret.calendar.config.CalendarConfigurationBuilder
This class produces a CalendarConfiguration which can be used to instantiate a
CalendarAdapter
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an instance of CalendarConfiguration which can be used to instantiate a CalendarAdapter.Sets a custom AdapterConfigurationListener to load custom configurations.setConfigurationLoader
(ConfigurationLoader configurationLoader) Sets a customConfigurationLoader
to replace the CalendarAdapter's default behaviour.setDataSource
(com.caplin.datasource.DataSource dataSource) Sets a custom DataSource to extend the CalendarAdapter's default behaviour.setDataTransformer
(CalendarDataTransformer dataTransformer) Sets a custom CalendarDataTransformer to extend the CalendarAdapter's default behaviour.setInstrumentProvider
(InstrumentProvider instrumentProvider) Sets a custom InstrumentProvider to replace the CalendarAdapter's default behaviour.setSettlementSubjectParser
(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETSettlementDateSubjectInfo> settlementSubjectParser) setTenorSubjectParser
(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETTenorDateSubjectInfo> tenorSubjectParser) setUserManager
(UserManager userManager) Sets a custom UserManager to replace the CalendarAdapter's default behaviour.
-
Field Details
-
ADAPTER_NAME
- See Also:
-
-
Constructor Details
-
CalendarConfigurationBuilder
- Throws:
ConfigurationLoaderException
-
-
Method Details
-
setDataTransformer
Sets a custom CalendarDataTransformer to extend the CalendarAdapter's default behaviour.- Parameters:
dataTransformer
- a customCalendarDataTransformer
- Returns:
- the CalendarConfigurationBuilder
-
setAdapterConfigurationListener
public CalendarConfigurationBuilder setAdapterConfigurationListener(AdapterConfigurationListener listener) Sets a custom AdapterConfigurationListener to load custom configurations.- Parameters:
listener
- The listener that will receive a callback to load custom configurations- Returns:
- the CalendarConfigurationBuilder
-
setDataSource
Sets a custom DataSource to extend the CalendarAdapter's default behaviour.- Parameters:
dataSource
- a customDataSource
- Returns:
- the CalendarConfigurationBuilder
-
setConfigurationLoader
Sets a customConfigurationLoader
to replace the CalendarAdapter's default behaviour.- Parameters:
configurationLoader
- a customConfigurationLoader
- Returns:
- the CalendarConfigurationBuilder
-
setInstrumentProvider
Sets a custom InstrumentProvider to replace the CalendarAdapter's default behaviour.- Parameters:
instrumentProvider
- a customInstrumentProvider
- Returns:
- the CalendarConfigurationBuilder
-
setUserManager
Sets a custom UserManager to replace the CalendarAdapter's default behaviour.- Parameters:
userManager
- a customUserManager
- Returns:
- the CalendarConfigurationBuilder
-
setSettlementSubjectParser
public CalendarConfigurationBuilder setSettlementSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETSettlementDateSubjectInfo> settlementSubjectParser) -
setTenorSubjectParser
public CalendarConfigurationBuilder setTenorSubjectParser(com.caplin.motif.datasource.SubjectParser<com.caplin.motif.fx.ret.calendar.subject.RETTenorDateSubjectInfo> tenorSubjectParser) -
build
Creates an instance of CalendarConfiguration which can be used to instantiate a CalendarAdapter.- Returns:
- a new CalendarConfiguration
-