Class DefaultOrderCustomFieldsFactory

  • All Implemented Interfaces:
    OrderCustomFieldsFactory

    public class DefaultOrderCustomFieldsFactory
    extends java.lang.Object
    implements OrderCustomFieldsFactory
    A OrderCustomFieldsFactory that creates record fields to be published to the blotter. The fields are additional fields that are not already contained in the standard set of fields send to the blotter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> createRecordFields​(com.caplin.ret.trapi.fx.FXOrder fxOrder)
      Create fields from FXOrder fxOrder.
      void initialise​(OrderExtensionContext context)
      This method will be called when the OrderCustomFieldsFactory is created.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultOrderCustomFieldsFactory

        public DefaultOrderCustomFieldsFactory()
    • Method Detail

      • createRecordFields

        @Nonnull
        public java.util.Map<java.lang.String,​java.lang.String> createRecordFields​(com.caplin.ret.trapi.fx.FXOrder fxOrder)
        Create fields from FXOrder fxOrder.
        Specified by:
        createRecordFields in interface OrderCustomFieldsFactory
        Parameters:
        fxOrder - - FXOrder - provides method getCOrder to get COrder object received from Refinitiv.
        Returns:
        a map of record fields
      • initialise

        public void initialise​(OrderExtensionContext context)
        Description copied from interface: OrderCustomFieldsFactory
        This method will be called when the OrderCustomFieldsFactory is created. If you need any data from the context you can override this method and get it.
        Specified by:
        initialise in interface OrderCustomFieldsFactory
        Parameters:
        context - provides additional data