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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerEffectiveDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,EffectiveDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Effective Dates subject requests.void
registerEffectiveTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,EffectiveTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Effective Tenor Dates subject requests.void
registerMaturityDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,MaturityDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Maturity Dates subject requests.void
registerMaturityTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,MaturityTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Maturity Tenor Dates subject requests.void
registerUserEffectiveDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,UserEffectiveDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Effective Dates subject requests.void
registerUserEffectiveTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,UserEffectiveTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Effective Tenor Dates subject requests.void
registerUserMaturityDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,UserMaturityDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Maturity Dates subject requests.void
registerUserMaturityTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,UserMaturityTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Maturity Tenor Dates subject requests.-
Methods inherited from class com.caplin.motif.datasource.CachedAdapter
clearCache, createActivePublisher, createActivePublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher, createCachedPublisher
-
-
-
-
Method Detail
-
registerEffectiveDatesProvider
public void registerEffectiveDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,EffectiveDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Effective Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserEffectiveDatesProvider
public void registerUserEffectiveDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,UserEffectiveDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Effective Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerEffectiveTenorDatesProvider
public void registerEffectiveTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,EffectiveTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Effective Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserEffectiveTenorDatesProvider
public void registerUserEffectiveTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,UserEffectiveTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Effective Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerMaturityDatesProvider
public void registerMaturityDatesProvider(CachedObjectProvider<java.util.List<java.lang.String>,MaturityDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Maturity Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserMaturityDatesProvider
public void registerUserMaturityDatesProvider(CachedObjectProvider<java.util.List<java.lang.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<java.util.Map<java.lang.String,java.lang.String>,MaturityTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to Maturity Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
registerUserMaturityTenorDatesProvider
public void registerUserMaturityTenorDatesProvider(CachedObjectProvider<java.util.Map<java.lang.String,java.lang.String>,UserMaturityTenorDatesSubjectInfo> provider)
Registers aCachedObjectProvider
that responds to user specific Maturity Tenor Dates subject requests.- Parameters:
provider
- object that provides dates
-
-