Class SubjectMappingProvider
- java.lang.Object
-
- com.caplin.motif.fx.ret.pricing.provider.mapping.SubjectMappingProvider
-
- All Implemented Interfaces:
com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
,MappingChangeListener
public class SubjectMappingProvider extends java.lang.Object implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>, MappingChangeListener
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
SubjectMappingProvider
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)
-
-
Method Detail
-
initialise
public void initialise()
-
onRequest
public void onRequest(com.caplin.motif.fx.rates.RateSubjectInfo subject)
- Specified by:
onRequest
in interfacecom.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
-
onDiscard
public void onDiscard(com.caplin.motif.fx.rates.RateSubjectInfo subject)
- Specified by:
onDiscard
in interfacecom.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
-
onMappingChange
public void onMappingChange()
Description copied from interface:MappingChangeListener
Called by a Provider when its internal state changes. This should be used to trigger a data refresh.
- Specified by:
onMappingChange
in interfaceMappingChangeListener
-
-