Package com.atlassian.crowd.config
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 TypeMethodDescriptionvoid
updateApplicationConfig
(com.atlassian.config.ApplicationConfiguration applicationConfiguration) Handles database configuration stored inApplicationConfiguration
, 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 inDatabaseDetails
, passed after completing database setup.boolean
-
Method Details
-
updateApplicationConfig
void updateApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfiguration) Handles database configuration stored inApplicationConfiguration
, 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 inDatabaseDetails
, 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
.
-