BootstrapConfig

public class BootstrapConfig

Represents the bootstrap configuration object. It is composed of:

  1. DBConfig - represents the database related bootstrap object.
  2. Tenant ID - represents the identifier of the tenant.
  3. Configuration source - represents the source of configuration (FILE / UI).
  4. ActiveMq Config - represents the properties of ActiveMq.

Fields

CONFIG_SOURCE

public static final String CONFIG_SOURCE

DEFAULT_OSGI_FRAMEWORK_STORAGE

public static final String DEFAULT_OSGI_FRAMEWORK_STORAGE

DEFAULT_TENANT_ID

public static final String DEFAULT_TENANT_ID

OSGI_FRAMEWORK_STORAGE

public static final String OSGI_FRAMEWORK_STORAGE

QUEUE_URL

public static final String QUEUE_URL

SQL_DRIVER

public static final String SQL_DRIVER

SQL_PASSWORD

public static final String SQL_PASSWORD

SQL_URL

public static final String SQL_URL

SQL_USER

public static final String SQL_USER

TENANT_ID

public static final String TENANT_ID

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

equals

public boolean equals(Object o)

getActiveMqProperties

public Properties getActiveMqProperties()

getConfigSource

public ConfigSource getConfigSource()

getOsgiFrameworkStorage

public String getOsgiFrameworkStorage()

getQueueUrl

public String getQueueUrl()

getSqlConfig

public SQLDBConfig getSqlConfig()

getTenantId

public String getTenantId()

hashCode

public int hashCode()

setQueueUrl

public final void setQueueUrl(String queueUrl)

toString

public String toString()