BootstrapConfig¶
-
public class
BootstrapConfig
¶ Represents the bootstrap configuration object. It is composed of:
- DBConfig - represents the database related bootstrap object.
- Configuration source - represents the source of configuration (FILE / UI).
- ActiveMq Config - represents the properties of ActiveMq.
Fields¶
Constructors¶
BootstrapConfig¶
-
public
BootstrapConfig
(SQLDBConfig sqlConfig, ConfigSource configSource, String osgiFrameworkStorage, String motechDir, String queueUrl)¶ Constructor.
Parameters: - sqlConfig – the configuration of a SQL database
- configSource – the source from which MOTECH configuration should be read
- osgiFrameworkStorage – the directory used as the bundle cache
- motechDir – the motech main directory
- queueUrl – the URL of the JMS broker
BootstrapConfig¶
-
public
BootstrapConfig
(SQLDBConfig sqlConfig, ConfigSource configSource, String osgiFrameworkStorage, String motechDir, String queueUrl, Properties activeMqProperties)¶ Constructor.
Parameters: - sqlConfig – the configuration of a SQL database
- configSource – the source from which MOTECH configuration should be read
- osgiFrameworkStorage – the directory used as the bundle cache
- motechDir – the motech main directory
- queueUrl – the URL of the JMS broker
- activeMqProperties – the ActiveMQ properties
Throws: - MotechConfigurationException – if sqlConfig is null.
Methods¶
getActiveMqProperties¶
-
public Properties
getActiveMqProperties
()¶
getConfigSource¶
-
public ConfigSource
getConfigSource
()¶
getSqlConfig¶
-
public SQLDBConfig
getSqlConfig
()¶