Class DelegatingBootstrapConfigurer
- java.lang.Object
-
- com.atlassian.confluence.impl.setup.DelegatingBootstrapConfigurer
-
- All Implemented Interfaces:
BootstrapConfigurer
public final class DelegatingBootstrapConfigurer extends Object implements BootstrapConfigurer
An implementation ofBootstrapConfigurer
that delegates to aBootstrapManager
.- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description DelegatingBootstrapConfigurer(BootstrapManager bootstrapManager)
-
Method Summary
All Methods Instance Methods Concrete 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()
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)
-
-
-
Constructor Detail
-
DelegatingBootstrapConfigurer
public DelegatingBootstrapConfigurer(BootstrapManager bootstrapManager)
-
-
Method Detail
-
setConfluenceHome
public void setConfluenceHome(String confluenceHome) throws com.atlassian.config.ConfigurationException
- Specified by:
setConfluenceHome
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.ConfigurationException
-
getWebAppContextPath
public String getWebAppContextPath()
- Specified by:
getWebAppContextPath
in interfaceBootstrapConfigurer
-
setWebAppContextPath
public void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
- Specified by:
setWebAppContextPath
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.ConfigurationException
-
isWebAppContextPathSet
public boolean isWebAppContextPathSet()
- Specified by:
isWebAppContextPathSet
in interfaceBootstrapConfigurer
-
checkConfigurationOnStartup
public void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException
- Specified by:
checkConfigurationOnStartup
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
cleanupOnShutdown
public void cleanupOnShutdown()
- Specified by:
cleanupOnShutdown
in interfaceBootstrapConfigurer
-
init
public void init() throws com.atlassian.config.bootstrap.BootstrapException
- Specified by:
init
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
publishConfiguration
public void publishConfiguration()
- Specified by:
publishConfiguration
in interfaceBootstrapConfigurer
-
setProperty
public void setProperty(String key, Object value)
- Specified by:
setProperty
in interfaceBootstrapConfigurer
-
setSetupComplete
public void setSetupComplete(boolean complete)
- Specified by:
setSetupComplete
in interfaceBootstrapConfigurer
-
setBuildNumber
public void setBuildNumber(String buildNumber)
- Specified by:
setBuildNumber
in interfaceBootstrapConfigurer
-
bootstrapDatasource
public void bootstrapDatasource(String datasourceName, String hibernateDialect) throws com.atlassian.config.bootstrap.BootstrapException
- Specified by:
bootstrapDatasource
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
bootstrapDatabase
public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.bootstrap.BootstrapException
- Specified by:
bootstrapDatabase
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
getSetupPersister
public com.atlassian.config.setup.SetupPersister getSetupPersister()
- Specified by:
getSetupPersister
in interfaceBootstrapConfigurer
-
isBootstrapped
public boolean isBootstrapped()
- Specified by:
isBootstrapped
in interfaceBootstrapConfigurer
-
save
public void save() throws com.atlassian.config.ConfigurationException
- Specified by:
save
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.ConfigurationException
-
getTestDatasourceConnection
public Connection getTestDatasourceConnection(String datasourceName) throws com.atlassian.config.bootstrap.BootstrapException
- Specified by:
getTestDatasourceConnection
in interfaceBootstrapConfigurer
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
isApplicationHomeValid
public boolean isApplicationHomeValid()
- Specified by:
isApplicationHomeValid
in interfaceBootstrapConfigurer
-
-