Interface BootstrapConfigurer
- All Known Implementing Classes:
DelegatingBootstrapConfigurer
public interface BootstrapConfigurer
Provides operations for (re-)configuring the Confluence bootstrap.
These operations shadow existing operaions in BootstrapManager and AtlassianBootstrapManager,
but this interface should be used in preference.
- Since:
- 7.14
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) voidbootstrapDatasource(String datasourceName, String hibernateDialect) voidvoidstatic BootstrapConfigurerStatically obtains an instance of theBootstrapConfigurerfromBootstrapUtils.com.atlassian.config.setup.SetupPersistergetTestDatasourceConnection(String datasourceName) voidinit()booleanbooleandefault booleanvoidvoidsave()voidsetBuildNumber(String buildNumber) voidsetConfluenceHome(String confluenceHome) voidsetProperty(String key, Object value) voidsetSetupComplete(boolean complete) voidsetWebAppContextPath(String webAppContextPath)
-
Method Details
-
setConfluenceHome
- Throws:
com.atlassian.config.ConfigurationException
-
getWebAppContextPath
String getWebAppContextPath() -
setWebAppContextPath
void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException - Throws:
com.atlassian.config.ConfigurationException
-
isWebAppContextPathSet
default boolean isWebAppContextPathSet() -
checkConfigurationOnStartup
void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
cleanupOnShutdown
void cleanupOnShutdown() -
init
void init() throws com.atlassian.config.bootstrap.BootstrapException- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
publishConfiguration
void publishConfiguration() -
setProperty
-
setSetupComplete
void setSetupComplete(boolean complete) -
setBuildNumber
-
bootstrapDatasource
void bootstrapDatasource(String datasourceName, String hibernateDialect) throws com.atlassian.config.bootstrap.BootstrapException - Throws:
com.atlassian.config.bootstrap.BootstrapException
-
bootstrapDatabase
void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.bootstrap.BootstrapException - Throws:
com.atlassian.config.bootstrap.BootstrapException
-
getSetupPersister
com.atlassian.config.setup.SetupPersister getSetupPersister() -
isBootstrapped
boolean isBootstrapped() -
save
void save() throws com.atlassian.config.ConfigurationException- Throws:
com.atlassian.config.ConfigurationException
-
getTestDatasourceConnection
Connection getTestDatasourceConnection(String datasourceName) throws com.atlassian.config.bootstrap.BootstrapException - Throws:
com.atlassian.config.bootstrap.BootstrapException
-
isApplicationHomeValid
boolean isApplicationHomeValid() -
getBootstrapConfigurer
Statically obtains an instance of theBootstrapConfigurerfromBootstrapUtils. This will only work after the Bootstrap has been initialised.
-