Class FxMotifOrderDetailsGenerator
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.extension.details.FxMotifOrderDetailsGenerator
-
- All Implemented Interfaces:
OrderDetailsGenerator
public class FxMotifOrderDetailsGenerator extends java.lang.Object implements OrderDetailsGenerator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.orders.details.OrderDetailsGenerator
OrderDetailsGenerator.Context
-
-
Constructor Summary
Constructors Constructor Description FxMotifOrderDetailsGenerator()
FxMotifOrderDetailsGenerator(InjectableFieldUtility fieldUtility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialise(OrderDetailsGenerator.Context context)
This notifies theOrderDetailsGenerator
that it is about to be loaded.void
populateOrderBuilder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode)
Creates a newOrderBuilder
and populates it with fields from the givenOrderNode
.void
updateOrderBuilderForDeletedOrder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event)
Updates an existing OrderBuilder with fields from anOrderEvent
.void
updateOrderBuilderWithHistory(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
Updates an existing OrderBuilder with fields fromOrderEventHistories
.
-
-
-
Constructor Detail
-
FxMotifOrderDetailsGenerator
public FxMotifOrderDetailsGenerator()
-
FxMotifOrderDetailsGenerator
public FxMotifOrderDetailsGenerator(InjectableFieldUtility fieldUtility)
-
-
Method Detail
-
initialise
public void initialise(OrderDetailsGenerator.Context context)
Description copied from interface:OrderDetailsGenerator
This notifies the
OrderDetailsGenerator
that it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
OrderDetailsGenerator
is loaded by the system.- Specified by:
initialise
in interfaceOrderDetailsGenerator
-
populateOrderBuilder
public void populateOrderBuilder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode) throws com.caplin.motif.fx.trading.orders.OrderConfigurationException
Description copied from interface:OrderDetailsGenerator
Creates a newOrderBuilder
and populates it with fields from the givenOrderNode
.- Specified by:
populateOrderBuilder
in interfaceOrderDetailsGenerator
- Throws:
com.caplin.motif.fx.trading.orders.OrderConfigurationException
-
updateOrderBuilderForDeletedOrder
public void updateOrderBuilderForDeletedOrder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event)
Description copied from interface:OrderDetailsGenerator
Updates an existing OrderBuilder with fields from anOrderEvent
.- Specified by:
updateOrderBuilderForDeletedOrder
in interfaceOrderDetailsGenerator
-
updateOrderBuilderWithHistory
public void updateOrderBuilderWithHistory(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
Description copied from interface:OrderDetailsGenerator
Updates an existing OrderBuilder with fields fromOrderEventHistories
.- Specified by:
updateOrderBuilderWithHistory
in interfaceOrderDetailsGenerator
-
-