Class BaseAdapterConfiguration
java.lang.Object
com.caplin.motif.fx.ret.common.configurationproperties.BaseAdapterConfiguration
- All Implemented Interfaces:
AdapterConfiguration
- Direct Known Subclasses:
CalendarAdapterInitialiser
,ClientSearchAdapterInitialiser
,FxTradingAdapterInitialiser
,LBNAdapterInitialiser
,OrderAdapterInitialiser
,PricingAdapterInitialiser
Represents the
adapter.properties
file-
Constructor Summary
ConstructorDescriptionBaseAdapterConfiguration
(String propertiesFile, ConfigurationLoader loader) BaseAdapterConfiguration
(String propertiesFile, ConfigurationLoader loader, AdapterConfigurationManager configManager) BaseAdapterConfiguration
(String propertiesFile, ConfigurationLoader configLoader, AdapterConfigurationManager configManager, org.slf4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanConfigValue
(String propertyName, boolean defaultValue) int
getIntConfigValue
(String propertyName, int defaultValue) long
getListConfigValue
(String propertyName, List<String> defaultValue) long
getLongConfigValue
(String propertyName, long defaultValue) getMessageTranslationThatMatches
(String message) org.apache.commons.configuration2.PropertiesConfiguration
getStringConfigValue
(String propertyName, String defaultValue)
-
Constructor Details
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(String propertiesFile, ConfigurationLoader loader, AdapterConfigurationManager configManager) throws DataSourceConfigurationException - Throws:
DataSourceConfigurationException
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(String propertiesFile, ConfigurationLoader loader) throws DataSourceConfigurationException - Throws:
DataSourceConfigurationException
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(String propertiesFile, ConfigurationLoader configLoader, AdapterConfigurationManager configManager, org.slf4j.Logger logger) throws DataSourceConfigurationException - Throws:
DataSourceConfigurationException
-
-
Method Details
-
getErrorMessageTranslator
- Specified by:
getErrorMessageTranslator
in interfaceAdapterConfiguration
-
getJMXPublishInterval
public long getJMXPublishInterval()- Specified by:
getJMXPublishInterval
in interfaceAdapterConfiguration
-
getMessageTranslationThatMatches
- Specified by:
getMessageTranslationThatMatches
in interfaceAdapterConfiguration
-
getPreciousMetalConversions
public List<PreciousMetalConversion> getPreciousMetalConversions() throws DataSourceConfigurationException- Specified by:
getPreciousMetalConversions
in interfaceAdapterConfiguration
- Throws:
DataSourceConfigurationException
-
getStringConfigValue
- Specified by:
getStringConfigValue
in interfaceAdapterConfiguration
-
getBooleanConfigValue
- Specified by:
getBooleanConfigValue
in interfaceAdapterConfiguration
-
getListConfigValue
- Specified by:
getListConfigValue
in interfaceAdapterConfiguration
-
getLongConfigValue
- Specified by:
getLongConfigValue
in interfaceAdapterConfiguration
-
getIntConfigValue
- Specified by:
getIntConfigValue
in interfaceAdapterConfiguration
-
getPropertiesConfiguration
public org.apache.commons.configuration2.PropertiesConfiguration getPropertiesConfiguration()- Specified by:
getPropertiesConfiguration
in interfaceAdapterConfiguration
-
getConfigurationLoader
- Specified by:
getConfigurationLoader
in interfaceAdapterConfiguration
-