Class 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface com.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 interface com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>