Class OrderConfiguration
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.config.OrderConfiguration
-
public class OrderConfiguration extends java.lang.Object
This class produces a OrderConfiguration which can be used to instantiate an OrderAdapter.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdapterConfigurationManager
getConfigManager()
Returns the AdapterConfigurationManager.ConfigurationLoader
getConfigurationLoader()
Returns the ConfigurationLoader.CustomFieldValuesFactory<com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy,OrderProperties>
getCustomFieldValuesFactory()
Returns the CustomFieldValuesFactory.CustomFieldValuesSerialiser
getCustomFieldValuesSerialiser()
Returns the CustomFieldValuesSerialiser.com.caplin.datasource.DataSource
getDataSource()
Returns the DataSource.InstrumentProvider
getInstrumentProvider()
NotificationManager
getNotificationManager()
Returns the NotificationManager to initialise notification components and send notifications.OrderAuditTrailListener
getOrderAuditTrailListener()
OrderConnectionPoolPreprocessor
getOrderConnectionPoolPreprocessor()
OrderConnectionRequestRouter
getOrderConnectionRequestRouter()
OrderCustomFieldsFactory
getOrderCustomFieldsFactory()
Returns the OrderCustomFieldsFactory.OrderEditor
getOrderEditor()
Returns the OrderEditor.OrderFactory
getOrderFactory()
Returns the OrderBuilderFactory.OrderFieldsGenerator
getOrderFieldsGenerator()
Returns the OrderFieldsGenerator.OrderPermissionFactory
getOrderPermissionFactory()
Returns the OrderPermissionFactory.java.util.Map<java.lang.String,com.caplin.motif.fx.trading.orders.submission.OrderSubmissionValidator>
getOrderSubmissionValidators()
StrategyDetailsGenerator
getStrategyDetailsGenerator()
Returns the StrategyDetailsGenerator.UserManager
getUserManager()
static AdapterConfiguration
newAdapterConfiguration()
Returns a AdapterConfiguration which can be used in retrieving config valuesstatic OrderConfigurationBuilder
newConfigurationBuilder()
This method returns a FxTradingConfigurationBuilder which is ready to be used to instantiate aFxTradingAdapter
.static OrderConfigurationBuilder
newConfigurationBuilder(ConfigurationLoader configurationLoader)
-
-
-
Method Detail
-
newConfigurationBuilder
public static OrderConfigurationBuilder newConfigurationBuilder() throws ConfigurationLoaderException
This method returns a FxTradingConfigurationBuilder which is ready to be used to instantiate aFxTradingAdapter
.- Returns:
- a new
OrderConfigurationBuilder
- Throws:
ConfigurationLoaderException
-
newConfigurationBuilder
public static OrderConfigurationBuilder newConfigurationBuilder(ConfigurationLoader configurationLoader) throws ConfigurationLoaderException
- Throws:
ConfigurationLoaderException
-
newAdapterConfiguration
public static AdapterConfiguration newAdapterConfiguration() throws ConfigurationLoaderException, DataSourceConfigurationException
Returns a AdapterConfiguration which can be used in retrieving config values- Returns:
- a new
AdapterConfiguration
} - Throws:
ConfigurationLoaderException
DataSourceConfigurationException
-
getUserManager
public UserManager getUserManager()
-
getOrderFieldsGenerator
public OrderFieldsGenerator getOrderFieldsGenerator()
Returns the OrderFieldsGenerator.- Returns:
- The order fields generator.
-
getOrderCustomFieldsFactory
public OrderCustomFieldsFactory getOrderCustomFieldsFactory()
Returns the OrderCustomFieldsFactory.- Returns:
- The custom fields factory.
-
getOrderFactory
public OrderFactory getOrderFactory()
Returns the OrderBuilderFactory.- Returns:
- The order builder factory.
-
getOrderEditor
public OrderEditor getOrderEditor()
Returns the OrderEditor.- Returns:
- The order editor.
-
getConfigManager
public AdapterConfigurationManager getConfigManager()
Returns the AdapterConfigurationManager.- Returns:
- The adapter configuration manager.
-
getCustomFieldValuesFactory
public CustomFieldValuesFactory<com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy,OrderProperties> getCustomFieldValuesFactory()
Returns the CustomFieldValuesFactory.- Returns:
- The custom field values factory.
-
getCustomFieldValuesSerialiser
public CustomFieldValuesSerialiser getCustomFieldValuesSerialiser()
Returns the CustomFieldValuesSerialiser.- Returns:
- The custom field values serialiser.
-
getDataSource
public com.caplin.datasource.DataSource getDataSource()
Returns the DataSource.- Returns:
- The data source.
-
getOrderPermissionFactory
public OrderPermissionFactory getOrderPermissionFactory()
Returns the OrderPermissionFactory.- Returns:
- The order permission factory.
-
getConfigurationLoader
public ConfigurationLoader getConfigurationLoader()
Returns the ConfigurationLoader.- Returns:
- The configuration loader.
-
getStrategyDetailsGenerator
public StrategyDetailsGenerator getStrategyDetailsGenerator()
Returns the StrategyDetailsGenerator.- Returns:
- The strategy details generator.
-
getOrderSubmissionValidators
public java.util.Map<java.lang.String,com.caplin.motif.fx.trading.orders.submission.OrderSubmissionValidator> getOrderSubmissionValidators()
-
getOrderConnectionRequestRouter
public OrderConnectionRequestRouter getOrderConnectionRequestRouter()
-
getOrderAuditTrailListener
public OrderAuditTrailListener getOrderAuditTrailListener()
-
getOrderConnectionPoolPreprocessor
public OrderConnectionPoolPreprocessor getOrderConnectionPoolPreprocessor()
-
getInstrumentProvider
public InstrumentProvider getInstrumentProvider()
-
getNotificationManager
public NotificationManager getNotificationManager()
Returns the NotificationManager to initialise notification components and send notifications.- Returns:
- NotificationManager.
-
-