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
andAtlassianBootstrapManager
, 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 void
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded)
void
bootstrapDatasource(String datasourceName, String hibernateDialect)
void
checkConfigurationOnStartup()
void
cleanupOnShutdown()
static BootstrapConfigurer
getBootstrapConfigurer()
Statically obtains an instance of theBootstrapConfigurer
fromBootstrapUtils
.com.atlassian.config.setup.SetupPersister
getSetupPersister()
Connection
getTestDatasourceConnection(String datasourceName)
String
getWebAppContextPath()
void
init()
boolean
isApplicationHomeValid()
boolean
isBootstrapped()
boolean
isWebAppContextPathSet()
void
publishConfiguration()
void
save()
void
setBuildNumber(String buildNumber)
void
setConfluenceHome(String confluenceHome)
void
setProperty(String key, Object value)
void
setSetupComplete(boolean complete)
void
setWebAppContextPath(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 theBootstrapConfigurer
fromBootstrapUtils
. This will only work after the Bootstrap has been initialised.
-
-