public class FXCalendarAdapter extends Object
SettlementDateRequestListener
and TenorDateRequestListener
.Constructor and Description |
---|
FXCalendarAdapter(com.caplin.datasource.DataSource dataSource)
Constructs an FXCalendarAdapter serviced by the specified DataSource.
|
FXCalendarAdapter(com.caplin.datasource.DataSource dataSource,
CalendarRequestListener listener)
Deprecated.
This constructor is deprecated because it creates an instance of FXCalendarAdapter and
registers an instance of the deprecated interface
CalendarRequestListener . Instead, call
FXCalendarAdapter(DataSource) to create an FXCalendarAdapter and then call registerSettlementDateProvider(SettlementDateRequestListener)
and registerTenorDateProvider(TenorDateRequestListener) to register your listeners on it. |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache of subscriptions and cached records.
|
<S extends SettlementDateSubjectInfo> |
registerSettlementDateProvider(SettlementDateRequestListener<S> listener,
com.caplin.datasource.namespace.Namespace namespace,
SubjectParser<S> subjectParser)
Used to register a provider of settlement dates that responds to non-standard subjects.
|
SettlementDateProvider<SettlementDateSubjectInfo> |
registerSettlementDateProvider(SettlementDateRequestListener<SettlementDateSubjectInfo> listener)
Used to register a provider of settlement dates that responds to requested subjects of the standard form:
|
<T extends TenorDateSubjectInfo> |
registerTenorDateProvider(TenorDateRequestListener<T> listener,
com.caplin.datasource.namespace.Namespace namespace,
SubjectParser<T> subjectParser)
Used to register a provider of tenor dates that responds to non-standard subjects.
|
TenorDateProvider<TenorDateSubjectInfo> |
registerTenorDateProvider(TenorDateRequestListener<TenorDateSubjectInfo> listener)
Used to register a provider of tenor dates that responds to requested subjects of the standard form:
|
@Deprecated public FXCalendarAdapter(com.caplin.datasource.DataSource dataSource, CalendarRequestListener listener)
CalendarRequestListener
. Instead, call
FXCalendarAdapter(DataSource)
to create an FXCalendarAdapter and then call registerSettlementDateProvider(SettlementDateRequestListener)
and registerTenorDateProvider(TenorDateRequestListener)
to register your listeners on it.dataSource
- The DataSource which provides connectivity to Liberator.listener
- The listener that will handle requests for settlement dates and tenor dates. Note that
this combined listener interface is deprecated.public FXCalendarAdapter(com.caplin.datasource.DataSource dataSource)
dataSource
- The DataSource which provides connectivity to Liberator.public SettlementDateProvider<SettlementDateSubjectInfo> registerSettlementDateProvider(SettlementDateRequestListener<SettlementDateSubjectInfo> listener)
Used to register a provider of settlement dates that responds to requested subjects of the standard form:
/CALENDAR/SETTLEMENTDATE/<Currency Pair>/<Year>/<Month>
listener
- The listener that will handle settlement date requests.public <S extends SettlementDateSubjectInfo> SettlementDateProvider<S> registerSettlementDateProvider(SettlementDateRequestListener<S> listener, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<S> subjectParser)
Unless you have modified your front end application to request a different form of subject to the
standard FX Motif (perhaps because you want to include extra information on the request) you can call
registerSettlementDateProvider(SettlementDateRequestListener)
instead of this method.
listener
- The listener that will handle settlement date requests.namespace
- A namespace that matches the format of your custom subjects.subjectParser
- A parser that will turn the requested subject into your own custom subclass
of SettlementDateSubjectInfo
.public TenorDateProvider<TenorDateSubjectInfo> registerTenorDateProvider(TenorDateRequestListener<TenorDateSubjectInfo> listener)
Used to register a provider of tenor dates that responds to requested subjects of the standard form:
/CALENDAR/TENORDATES/<Currency Pair\>
listener
- The listener that will handle tenor date requests.public <T extends TenorDateSubjectInfo> TenorDateProvider<T> registerTenorDateProvider(TenorDateRequestListener<T> listener, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser)
Used to register a provider of tenor dates that responds to non-standard subjects.
Unless you have modified your front end application to request a different form of subject to the
standard FX Motif (perhaps because you want to include extra information on the request) you can call
registerTenorDateProvider(TenorDateRequestListener)
instead of this method.
listener
- The listener that will handle tenor date requests.namespace
- A namespace that matches the format of your custom subjects.subjectParser
- A parser that will turn the requested subject into your own custom subclass of
TenorDateSubjectInfo
.public void clearCache()
Copyright © 2015 Caplin Systems.