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).

Fields

CONFIG_SOURCE

public static final String CONFIG_SOURCE

COUCHDB_PASSWORD

public static final String COUCHDB_PASSWORD

COUCHDB_URL

public static final String COUCHDB_URL

COUCHDB_USERNAME

public static final String COUCHDB_USERNAME

DEFAULT_TENANT_ID

public static final String DEFAULT_TENANT_ID

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(DBConfig couchDbConfig, SQLDBConfig sqlConfig, String tenantId, ConfigSource configSource)
Parameters:
  • couchDbConfig
  • sqlConfig
  • tenantId
  • configSource
Throws:
  • org.motechproject.config.core.MotechConfigurationException – if dbConfig is null.

Methods

equals

public boolean equals(Object o)

getConfigSource

public ConfigSource getConfigSource()

getCouchDbConfig

public DBConfig getCouchDbConfig()

getSqlConfig

public SQLDBConfig getSqlConfig()

getTenantId

public String getTenantId()

hashCode

public int hashCode()

toString

public String toString()