BootstrapConfig

public class BootstrapConfig

Represents the bootstrap configuration object. It is composed of:

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

Fields

CONFIG_SOURCE

public static final String CONFIG_SOURCE

DEFAULT_MOTECH_DIR

public static final String DEFAULT_MOTECH_DIR

DEFAULT_OSGI_FRAMEWORK_STORAGE

public static final String DEFAULT_OSGI_FRAMEWORK_STORAGE

MOTECH_DIR

public static final String MOTECH_DIR

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

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

equals

public boolean equals(Object o)

getActiveMqProperties

public Properties getActiveMqProperties()

getConfigSource

public ConfigSource getConfigSource()

getMotechDir

public String getMotechDir()

getOsgiFrameworkStorage

public String getOsgiFrameworkStorage()

getQueueUrl

public String getQueueUrl()

getSqlConfig

public SQLDBConfig getSqlConfig()

hashCode

public int hashCode()

setQueueUrl

public final void setQueueUrl(String queueUrl)

toString

public String toString()