Class SubjectMappingProvider
java.lang.Object
com.caplin.motif.fx.ret.pricing.provider.mapping.SubjectMappingProvider
- All Implemented Interfaces:
com.caplin.datasource.publisher.CachingDataProvider
,MappingChangeListener
public class SubjectMappingProvider
extends Object
implements com.caplin.datasource.publisher.CachingDataProvider, MappingChangeListener
-
Constructor Summary
ConstructorDescriptionSubjectMappingProvider
(com.caplin.datasource.DataSource dataSource, String subjectPrefix, com.caplin.motif.fx.rates.RateSubjectParser subjectParser, List<SubjectMapper> subjectMappers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Called by a Provider when its internal state changes.void
void
setPublisher
(com.caplin.datasource.publisher.CachingPublisher publisher)
-
Constructor Details
-
SubjectMappingProvider
public SubjectMappingProvider(com.caplin.datasource.DataSource dataSource, String subjectPrefix, com.caplin.motif.fx.rates.RateSubjectParser subjectParser, List<SubjectMapper> subjectMappers)
-
-
Method Details
-
initialise
public void initialise() -
setPublisher
public void setPublisher(com.caplin.datasource.publisher.CachingPublisher publisher) - Specified by:
setPublisher
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
onRequest
- Specified by:
onRequest
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
onDiscard
- Specified by:
onDiscard
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
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
-