Package com.caplin.motif.mm.calendar
Class MMCalendarAdapter
- java.lang.Object
-
- com.caplin.motif.datasource.CachedAdapter
-
- com.caplin.motif.mm.calendar.MMCalendarAdapter
-
public class MMCalendarAdapter extends CachedAdapter
Register Dates Providers with this adapter to publish the dates they provide to the clients that request them.
-
-
Constructor Summary
Constructors Constructor Description MMCalendarAdapter(com.caplin.datasource.DataSource dataSource)
Creates a MMCalendarAdapter that is serviced by the given DataSource.
-
Method Summary
-
Methods inherited from class com.caplin.motif.datasource.CachedAdapter
clearCache, createActivePublisher, createActivePublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher
-
-
-
-
Method Detail
-
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
-
-