Class FxMotifOrderCustomFieldValuesFactory
java.lang.Object
com.caplin.motif.fx.ret.orders.extension.customfield.FxMotifOrderCustomFieldValuesFactory
- All Implemented Interfaces:
CustomFieldValuesFactory<MotifOrderStrategy,
OrderProperties>
public class FxMotifOrderCustomFieldValuesFactory
extends Object
implements CustomFieldValuesFactory<MotifOrderStrategy,OrderProperties>
A
CustomFieldValuesFactory
that creates the default CustomFieldValues
used
by the FxMotif.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.common.customfield.CustomFieldValuesFactory
CustomFieldValuesFactory.Context
-
Constructor Summary
ConstructorsConstructorDescriptionFxMotifOrderCustomFieldValuesFactory
(InjectableCustomFieldValues customFieldValues) -
Method Summary
Modifier and TypeMethodDescriptioncreateCustomFieldValues
(MotifOrderStrategy trade, OrderProperties orderProperties) Returns aCustomFieldValues
object.void
-
Constructor Details
-
FxMotifOrderCustomFieldValuesFactory
public FxMotifOrderCustomFieldValuesFactory() -
FxMotifOrderCustomFieldValuesFactory
-
-
Method Details
-
initialise
- Specified by:
initialise
in interfaceCustomFieldValuesFactory<MotifOrderStrategy,
OrderProperties>
-
createCustomFieldValues
public CustomFieldValues createCustomFieldValues(MotifOrderStrategy trade, OrderProperties orderProperties) Description copied from interface:CustomFieldValuesFactory
Returns a
CustomFieldValues
object.Use this method to populate
CustomFieldValues
with values taken from theUserTrade
and tradeProperties- Specified by:
createCustomFieldValues
in interfaceCustomFieldValuesFactory<MotifOrderStrategy,
OrderProperties>
-