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