Package com.caplin.motif.mm.calendar
Class MMCalendarAdapter
java.lang.Object
com.caplin.motif.datasource.CachedAdapter
com.caplin.motif.mm.calendar.MMCalendarAdapter
Register Dates Providers with this adapter to publish the dates they provide to the
clients that request them.
-
Field Summary
Fields inherited from class com.caplin.motif.datasource.CachedAdapter
dataSource
-
Constructor Summary
ConstructorDescriptionMMCalendarAdapter
(com.caplin.datasource.DataSource dataSource) Creates a MMCalendarAdapter that is serviced by the given DataSource. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers aCachedObjectProvider
that responds to Maturity Dates subject requests.void
registerMaturityTenorDatesProvider
(CachedObjectProvider<Map<String, String>, MaturityTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Maturity Tenor Dates subject requests.void
Registers aCachedObjectProvider
that responds to Start Dates subject requests.void
registerStartTenorDatesProvider
(CachedObjectProvider<Map<String, String>, StartTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Start Tenor Dates subject requests.void
registerUserMaturityDatesProvider
(CachedObjectProvider<List<String>, UserMaturityDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Maturity Dates subject requests.void
registerUserMaturityTenorDatesProvider
(CachedObjectProvider<Map<String, String>, UserMaturityTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Maturity Tenor Dates subject requests.void
registerUserStartDatesProvider
(CachedObjectProvider<List<String>, UserStartDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Start Dates subject requests.void
registerUserStartTenorDatesProvider
(CachedObjectProvider<Map<String, String>, UserStartTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Start Tenor Dates subject requests.Methods inherited from class com.caplin.motif.datasource.CachedAdapter
createCachedPublisher, createCachedPublisher
-
Constructor Details
-
MMCalendarAdapter
public MMCalendarAdapter(com.caplin.datasource.DataSource dataSource) Creates a MMCalendarAdapter that is serviced by the given DataSource.- Parameters:
dataSource
- the DataSource which provides connectivity to Liberator
-
-
Method Details
-
registerStartDatesProvider
public void registerStartDatesProvider(CachedObjectProvider<List<String>, StartDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Start Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserStartDatesProvider
public void registerUserStartDatesProvider(CachedObjectProvider<List<String>, UserStartDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Start Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerStartTenorDatesProvider
public void registerStartTenorDatesProvider(CachedObjectProvider<Map<String, String>, StartTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Start Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserStartTenorDatesProvider
public void registerUserStartTenorDatesProvider(CachedObjectProvider<Map<String, String>, UserStartTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Start Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerMaturityDatesProvider
public void registerMaturityDatesProvider(CachedObjectProvider<List<String>, MaturityDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Maturity Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserMaturityDatesProvider
public void registerUserMaturityDatesProvider(CachedObjectProvider<List<String>, UserMaturityDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Maturity Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerMaturityTenorDatesProvider
public void registerMaturityTenorDatesProvider(CachedObjectProvider<Map<String, String>, MaturityTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to Maturity Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserMaturityTenorDatesProvider
public void registerUserMaturityTenorDatesProvider(CachedObjectProvider<Map<String, String>, UserMaturityTenorDatesSubjectInfo> provider) Registers aCachedObjectProvider
that responds to user specific Maturity Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-