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 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 interface com.caplin.datasource.publisher.CachingDataProvider
    • onRequest

      public void onRequest(String subject)
      Specified by:
      onRequest in interface com.caplin.datasource.publisher.CachingDataProvider
    • onDiscard

      public void onDiscard(String subject)
      Specified by:
      onDiscard in interface com.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 interface MappingChangeListener