Interface OrderDetailsGenerator
- All Known Implementing Classes:
FxMotifOrderDetailsGenerator
public interface OrderDetailsGenerator
An interface for working with
OrderBuilders.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialise(OrderDetailsGenerator.Context context) This notifies theOrderDetailsGeneratorthat it is about to be loaded.voidpopulateOrderBuilder(OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode) Creates a newOrderBuilderand populates it with fields from the givenOrderNode.voidupdateOrderBuilderForDeletedOrder(OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event) Updates an existing OrderBuilder with fields from anOrderEvent.voidupdateOrderBuilderWithHistory(OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory) Updates an existing OrderBuilder with fields fromOrderEventHistories.
-
Method Details
-
initialise
This notifies the
OrderDetailsGeneratorthat 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
OrderDetailsGeneratoris loaded by the system. -
populateOrderBuilder
void populateOrderBuilder(OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode) throws OrderConfigurationException Creates a newOrderBuilderand populates it with fields from the givenOrderNode.- Throws:
OrderConfigurationException
-
updateOrderBuilderForDeletedOrder
void updateOrderBuilderForDeletedOrder(OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event) Updates an existing OrderBuilder with fields from anOrderEvent. -
updateOrderBuilderWithHistory
void updateOrderBuilderWithHistory(OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory) Updates an existing OrderBuilder with fields fromOrderEventHistories.
-