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 TypeMethodDescriptionvoid
bootstrapDatabase
(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) void
bootstrapDatasource
(String datasourceName, String hibernateDialect) void
void
static BootstrapConfigurer
Statically obtains an instance of theBootstrapConfigurer
fromBootstrapUtils
.com.atlassian.config.setup.SetupPersister
getTestDatasourceConnection
(String datasourceName) void
init()
boolean
boolean
default boolean
void
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 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 theBootstrapConfigurer
fromBootstrapUtils
. This will only work after the Bootstrap has been initialised.
-