Interface DatabaseConfigurationListener

All Known Implementing Classes:
ConnectionUrlDecoratingDatabaseConfigurationListener, EnvironmentDrivenDatabaseConfigurationListener

public interface DatabaseConfigurationListener
Handles database initialisation, either by means of setup or application bootstrap
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
    Handles database configuration stored in ApplicationConfiguration, should be called after the configuration is loaded, but before it's used by the application.
    void
    updateDatabaseDetails(com.atlassian.config.db.DatabaseDetails databaseDetails)
    Handles database configuration stored in DatabaseDetails, passed after completing database setup.
    boolean
     
  • Method Details

    • updateApplicationConfig

      void updateApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
      Handles database configuration stored in ApplicationConfiguration, should be called after the configuration is loaded, but before it's used by the application.
      Parameters:
      applicationConfiguration - the freshly loaded application configuration
    • updateDatabaseDetails

      void updateDatabaseDetails(com.atlassian.config.db.DatabaseDetails databaseDetails)
      Handles database configuration stored in DatabaseDetails, passed after completing database setup.
      Parameters:
      databaseDetails - the details used to complete database setup
    • willOverrideDatabaseDetails

      boolean willOverrideDatabaseDetails()
      Returns:
      true if the listener will override the default settings in the DatabaseDetails.