Interface BootstrapConfigurer
- 
- All Known Implementing Classes:
 DelegatingBootstrapConfigurer
public interface BootstrapConfigurerProvides operations for (re-)configuring the Confluence bootstrap.These operations shadow existing operaions in
BootstrapManagerandAtlassianBootstrapManager, but this interface should be used in preference.- Since:
 - 7.14
 - See Also:
 DefaultBootstrapManager,DelegatingBootstrapConfigurer
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded)voidbootstrapDatasource(String datasourceName, String hibernateDialect)voidcheckConfigurationOnStartup()voidcleanupOnShutdown()static BootstrapConfigurergetBootstrapConfigurer()Statically obtains an instance of theBootstrapConfigurerfromBootstrapUtils.com.atlassian.config.setup.SetupPersistergetSetupPersister()ConnectiongetTestDatasourceConnection(String datasourceName)StringgetWebAppContextPath()voidinit()booleanisApplicationHomeValid()booleanisBootstrapped()booleanisWebAppContextPathSet()voidpublishConfiguration()voidsave()voidsetBuildNumber(String buildNumber)voidsetConfluenceHome(String confluenceHome)voidsetProperty(String key, Object value)voidsetSetupComplete(boolean complete)voidsetWebAppContextPath(String webAppContextPath) 
 - 
 
- 
- 
Method Detail
- 
setConfluenceHome
void setConfluenceHome(String confluenceHome) throws com.atlassian.config.ConfigurationException
- Throws:
 com.atlassian.config.ConfigurationException
 
- 
getWebAppContextPath
String getWebAppContextPath()
 
- 
setWebAppContextPath
void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
- Throws:
 com.atlassian.config.ConfigurationException
 
- 
isWebAppContextPathSet
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()
 
- 
setSetupComplete
void setSetupComplete(boolean complete)
 
- 
setBuildNumber
void setBuildNumber(String buildNumber)
 
- 
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
static BootstrapConfigurer getBootstrapConfigurer()
Statically obtains an instance of theBootstrapConfigurerfromBootstrapUtils. This will only work after the Bootstrap has been initialised. 
 - 
 
 -