Class EnvironmentDrivenDatabaseConfigurationListener

java.lang.Object
com.atlassian.crowd.config.EnvironmentDrivenDatabaseConfigurationListener
All Implemented Interfaces:
DatabaseConfigurationListener

public class EnvironmentDrivenDatabaseConfigurationListener extends Object implements DatabaseConfigurationListener
Replaces the database configuration with the one specified in environment properties if a complete database configuration is provided as environmental variables.
  • Field Details

  • Constructor Details

    • EnvironmentDrivenDatabaseConfigurationListener

      public EnvironmentDrivenDatabaseConfigurationListener()
  • Method Details

    • updateApplicationConfig

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

      public void updateDatabaseDetails(com.atlassian.config.db.DatabaseDetails databaseDetails)
      Description copied from interface: DatabaseConfigurationListener
      Handles database configuration stored in DatabaseDetails, passed after completing database setup.
      Specified by:
      updateDatabaseDetails in interface DatabaseConfigurationListener
      Parameters:
      databaseDetails - the details used to complete database setup
    • willOverrideDatabaseDetails

      public boolean willOverrideDatabaseDetails()
      Specified by:
      willOverrideDatabaseDetails in interface DatabaseConfigurationListener
      Returns:
      true if the listener will override the default settings in the DatabaseDetails.
    • isConfigurationValid

      public boolean isConfigurationValid()
    • isPoolSizeConfigurationValid

      public boolean isPoolSizeConfigurationValid()
    • getValidPoolSize

      public int getValidPoolSize()