public class SubjectMappingProvider extends java.lang.Object implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.AbstractSubjectInfo>, MappingChangeListener
Constructor and Description |
---|
SubjectMappingProvider(com.caplin.motif.fx.rates.FXRatesAdapter ratesAdapter,
java.lang.String subjectPrefix,
com.caplin.motif.fx.rates.AbstractSubjectParser subjectParser,
java.util.List<SubjectMapper> subjectMappers) |
Modifier and Type | Method and Description |
---|---|
void |
initialise() |
void |
onDiscard(com.caplin.motif.fx.rates.AbstractSubjectInfo subject) |
void |
onMappingChange()
Called by a Provider when its internal state changes.
|
void |
onRequest(com.caplin.motif.fx.rates.AbstractSubjectInfo subject) |
public SubjectMappingProvider(com.caplin.motif.fx.rates.FXRatesAdapter ratesAdapter, java.lang.String subjectPrefix, com.caplin.motif.fx.rates.AbstractSubjectParser subjectParser, java.util.List<SubjectMapper> subjectMappers)
public void initialise()
public void onRequest(com.caplin.motif.fx.rates.AbstractSubjectInfo subject)
onRequest
in interface com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.AbstractSubjectInfo>
public void onDiscard(com.caplin.motif.fx.rates.AbstractSubjectInfo subject)
onDiscard
in interface com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.AbstractSubjectInfo>
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 © 2016 Caplin Systems.