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
,PermissioningAdapterInitialiser
,PricingAdapterInitialiser
public class BaseAdapterConfiguration extends java.lang.Object implements AdapterConfiguration
Represents theadapter.properties
file
-
-
Constructor Summary
Constructors Constructor Description BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader loader)
BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader loader, AdapterConfigurationManager configManager)
BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader configLoader, AdapterConfigurationManager configManager, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanConfigValue(java.lang.String propertyName, boolean defaultValue)
ConfigurationLoader
getConfigurationLoader()
ErrorMessageTranslator
getErrorMessageTranslator()
int
getIntConfigValue(java.lang.String propertyName, int defaultValue)
long
getJMXPublishInterval()
java.util.List<java.lang.String>
getListConfigValue(java.lang.String propertyName, java.util.List<java.lang.String> defaultValue)
long
getLongConfigValue(java.lang.String propertyName, long defaultValue)
MessageTranslation
getMessageTranslationThatMatches(java.lang.String message)
java.util.List<PreciousMetalConversion>
getPreciousMetalConversions()
org.apache.commons.configuration.PropertiesConfiguration
getPropertiesConfiguration()
java.lang.String
getStringConfigValue(java.lang.String propertyName, java.lang.String defaultValue)
boolean
isUseDirectorUserManager()
-
-
-
Constructor Detail
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader loader, AdapterConfigurationManager configManager) throws DataSourceConfigurationException
- Throws:
DataSourceConfigurationException
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader loader) throws DataSourceConfigurationException
- Throws:
DataSourceConfigurationException
-
BaseAdapterConfiguration
public BaseAdapterConfiguration(java.lang.String propertiesFile, ConfigurationLoader configLoader, AdapterConfigurationManager configManager, org.slf4j.Logger logger) throws DataSourceConfigurationException
- Throws:
DataSourceConfigurationException
-
-
Method Detail
-
getErrorMessageTranslator
public ErrorMessageTranslator getErrorMessageTranslator()
- Specified by:
getErrorMessageTranslator
in interfaceAdapterConfiguration
-
getJMXPublishInterval
public long getJMXPublishInterval()
- Specified by:
getJMXPublishInterval
in interfaceAdapterConfiguration
-
isUseDirectorUserManager
public boolean isUseDirectorUserManager()
- Specified by:
isUseDirectorUserManager
in interfaceAdapterConfiguration
-
getMessageTranslationThatMatches
public MessageTranslation getMessageTranslationThatMatches(java.lang.String message)
- Specified by:
getMessageTranslationThatMatches
in interfaceAdapterConfiguration
-
getPreciousMetalConversions
public java.util.List<PreciousMetalConversion> getPreciousMetalConversions() throws DataSourceConfigurationException
- Specified by:
getPreciousMetalConversions
in interfaceAdapterConfiguration
- Throws:
DataSourceConfigurationException
-
getStringConfigValue
public java.lang.String getStringConfigValue(java.lang.String propertyName, java.lang.String defaultValue)
- Specified by:
getStringConfigValue
in interfaceAdapterConfiguration
-
getBooleanConfigValue
public boolean getBooleanConfigValue(java.lang.String propertyName, boolean defaultValue)
- Specified by:
getBooleanConfigValue
in interfaceAdapterConfiguration
-
getListConfigValue
public java.util.List<java.lang.String> getListConfigValue(java.lang.String propertyName, java.util.List<java.lang.String> defaultValue)
- Specified by:
getListConfigValue
in interfaceAdapterConfiguration
-
getLongConfigValue
public long getLongConfigValue(java.lang.String propertyName, long defaultValue)
- Specified by:
getLongConfigValue
in interfaceAdapterConfiguration
-
getIntConfigValue
public int getIntConfigValue(java.lang.String propertyName, int defaultValue)
- Specified by:
getIntConfigValue
in interfaceAdapterConfiguration
-
getPropertiesConfiguration
public org.apache.commons.configuration.PropertiesConfiguration getPropertiesConfiguration()
- Specified by:
getPropertiesConfiguration
in interfaceAdapterConfiguration
-
getConfigurationLoader
public ConfigurationLoader getConfigurationLoader()
- Specified by:
getConfigurationLoader
in interfaceAdapterConfiguration
-
-