public class SubjectMappingProvider extends java.lang.Object implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>, MappingChangeListener
Constructor and Description |
---|
SubjectMappingProvider(com.caplin.motif.fx.rates.FXRatesAdapter ratesAdapter,
java.lang.String subjectPrefix,
com.caplin.motif.fx.rates.RateSubjectParser subjectParser,
java.util.List<SubjectMapper> subjectMappers) |
Modifier and Type | Method and Description |
---|---|
void |
initialise() |
void |
onDiscard(com.caplin.motif.fx.rates.RateSubjectInfo subject) |
void |
onMappingChange()
Called by a Provider when its internal state changes.
|
void |
onRequest(com.caplin.motif.fx.rates.RateSubjectInfo subject) |
public SubjectMappingProvider(com.caplin.motif.fx.rates.FXRatesAdapter ratesAdapter, java.lang.String subjectPrefix, com.caplin.motif.fx.rates.RateSubjectParser subjectParser, java.util.List<SubjectMapper> subjectMappers)
public void initialise()
public void onRequest(com.caplin.motif.fx.rates.RateSubjectInfo subject)
onRequest
in interface com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
public void onDiscard(com.caplin.motif.fx.rates.RateSubjectInfo subject)
onDiscard
in interface com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
public void onMappingChange()
MappingChangeListener
Called by a Provider when its internal state changes. This should be used to trigger a data refresh.
onMappingChange
in interface MappingChangeListener
Copyright © 2019 Caplin Systems.