public class LBNConfigurationBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTER_NAME |
Constructor and Description |
---|
LBNConfigurationBuilder()
This class produces a LBNConfiguration which can be used to instantiate a
LBNAdapter . |
Modifier and Type | Method and Description |
---|---|
LBNConfigurationBuilder |
addBlotterType(BlotterType blotterType)
Adds a blotter type to the LBN adapter.
|
LBNConfiguration |
build()
Creates an instance of LBNConfiguration which can be used to instantiate a LBNAdapter.
|
LBNConfigurationBuilder |
setAdapterConfigurationListener(AdapterConfigurationListener listener)
Sets a custom
AdapterConfigurationListener to load custom configurations. |
LBNConfigurationBuilder |
setBlotterCriteriaFactory(BlotterCriteriaFactory blotterCriteriaFactory)
Sets the factory used to generate LBN queries
|
LBNConfigurationBuilder |
setBlotterItemFieldsUpdater(BlotterRecordFieldsUpdater fieldsUpdater)
Deprecated.
BlotterRecordFieldsUpdater has been deprecated.
Please use LBNCustomFieldsFactory .
Sets a custom |
LBNConfigurationBuilder |
setBlotterRecordFactory(com.caplin.motif.fx.ret.lbn.internal.BlotterRecordFactory blotterRecordFactory)
Sets a custom
BlotterRecordFactory to override the default factory used to create blotter records
from RET deal records. |
LBNConfigurationBuilder |
setBlotterRecordIdFactory(BlotterRecordIdFactory blotterRecordIdFactory)
Sets a custom
BlotterRecordIdFactory to override the default id factory for the executed blotter. |
LBNConfigurationBuilder |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets a custom
ConfigurationLoader to replace the
OrderAdapter's default behaviour. |
LBNConfigurationBuilder |
setCustomFieldValuesSerialiser(CustomFieldValuesSerialiser customFieldValuesSerialiser)
Sets a custom
CustomFieldValuesSerialiser used to serialise/deserialise CustomFieldValues objects. |
LBNConfigurationBuilder |
setDataSource(com.caplin.datasource.DataSource dataSource)
Sets a custom
DataSource to extend the LBNAdapter's default behaviour. |
LBNConfigurationBuilder |
setLBNCustomFieldsFactory(LBNCustomFieldsFactory lbnCustomFieldsFactory)
Sets a custom
LBNCustomFieldsFactory to override the LBNAdapter's default LBNCustomFieldsFactory. |
LBNConfigurationBuilder |
setUserManager(UserManager userManager)
Sets a custom
UserManager to override the LBNAdapter's default UserManager. |
public static final java.lang.String ADAPTER_NAME
public LBNConfigurationBuilder() throws ConfigurationLoaderException
LBNAdapter
.ConfigurationLoaderException
@Deprecated public LBNConfigurationBuilder setBlotterItemFieldsUpdater(BlotterRecordFieldsUpdater fieldsUpdater)
BlotterRecordFieldsUpdater
has been deprecated.
Please use LBNCustomFieldsFactory
.
Sets a custom BlotterRecordFieldsUpdater
to override the
LBNAdapter's default BlotterItemFieldsUpdater. The BlotterItemFieldsUpdater allows the user to receive
fields to be sent for a blotter record. The custom BlotterItemFieldsUpdater can change, add, remove fields
on the record.
fieldsUpdater
- A custom BlotterRecordFieldsUpdater
BlotterRecordFieldsUpdater
public LBNConfigurationBuilder setLBNCustomFieldsFactory(LBNCustomFieldsFactory lbnCustomFieldsFactory)
LBNCustomFieldsFactory
to override the LBNAdapter's default LBNCustomFieldsFactory.
The LBNCustomFieldsFactory allows the user to receive fields to be sent for a blotter record.
The custom LBNCustomFieldsFactory can add more fields on the record.lbnCustomFieldsFactory
- A custom LBNCustomFieldsFactory
public LBNConfigurationBuilder setBlotterRecordIdFactory(BlotterRecordIdFactory blotterRecordIdFactory)
BlotterRecordIdFactory
to override the default id factory for the executed blotter.blotterRecordIdFactory
- A custom BlotterRecordIdFactory
BlotterRecordIdFactory
public LBNConfigurationBuilder setBlotterRecordFactory(com.caplin.motif.fx.ret.lbn.internal.BlotterRecordFactory blotterRecordFactory)
BlotterRecordFactory
to override the default factory used to create blotter records
from RET deal records.blotterRecordFactory
- a custom BlotterRecordFactory
BlotterRecordFactory
public LBNConfigurationBuilder setUserManager(UserManager userManager)
UserManager
to override the LBNAdapter's default UserManager.userManager
- a custom UserManager
UserManager
public LBNConfigurationBuilder setAdapterConfigurationListener(AdapterConfigurationListener listener)
AdapterConfigurationListener
to load custom configurations.listener
- The listener that will receive a callback to load custom configurationsAdapterConfigurationListener
public LBNConfigurationBuilder setCustomFieldValuesSerialiser(CustomFieldValuesSerialiser customFieldValuesSerialiser)
CustomFieldValuesSerialiser
used to serialise/deserialise CustomFieldValues
objects.
The resulting serialised objects will be stored in the TakerOrderCustom field.customFieldValuesSerialiser
- The custom serialiser to use when serialising/deserialising
CustomFieldValues
objectspublic LBNConfigurationBuilder setDataSource(com.caplin.datasource.DataSource dataSource)
DataSource
to extend the LBNAdapter's default behaviour.dataSource
- a custom DataSource
DataSource
public LBNConfigurationBuilder setConfigurationLoader(ConfigurationLoader configurationLoader)
ConfigurationLoader
to replace the
OrderAdapter's default behaviour.configurationLoader
- a custom ConfigurationLoader
ConfigurationLoader
public LBNConfigurationBuilder setBlotterCriteriaFactory(BlotterCriteriaFactory blotterCriteriaFactory)
BlotterCriteriaFactory
public LBNConfigurationBuilder addBlotterType(BlotterType blotterType)
BlotterType
public LBNConfiguration build()
Copyright © 2019 Caplin Systems.