public class

DefaultBootstrapManager

extends DefaultAtlassianBootstrapManager
implements BootstrapManager
java.lang.Object
   ↳ com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
     ↳ com.atlassian.confluence.setup.DefaultBootstrapManager

Class Overview

BootstrapManager is responsible for initializing the dependencies of Confluence environment.

  1. Initializing the Confluence environment, beginning with loading confluence.cfg.xml from the confluence.home property specified in confluence-init.properties.
  2. Delegating, monitoring, and answering all client requests concerning Confluence initialization routines.
  3. Providing the SetupPersister with whatever resources it needs to let a user bootstrapManager Confluence.

Summary

Constants
String CONFIG_DIR_NAME
[Expand]
Inherited Constants
From interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants
[Expand]
Inherited Fields
From class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
Public Constructors
DefaultBootstrapManager()
Public Methods
void bootstrapDatabase(DatabaseDetails dbDetails, boolean embedded)
void bootstrapDatasource(String datasourceName, String hibernateDialect)
void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Starts Confluence with a database configuration that has been retrieved from another cluster node.
void checkConfigurationOnStartup()
String getBaseUrl()
This method is deprecated. No replacement.
String getConfiguredConfluenceHome()
String getConfluenceHome()
String getDomainName()
This method is deprecated. No replacement.
String getFilePathProperty(String key)
CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence.
String getWebAppContextPath()
boolean isWebAppContextPathSet()
void publishConfiguration()
void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
void setConfluenceHome(String confluenceHome)
Use for test cases only
void setDatabaseHelper(ConfluenceDatabaseHelper databaseHelper)
void setWebAppContextPath(String webAppContextPath)
Protected Methods
void afterConfigurationLoaded()
String getDbUrl(DatabaseDetails dbDetails)
boolean performPersistenceUpgrade()
void postBootstrapDatabase()
[Expand]
Inherited Methods
From class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
From class java.lang.Object
From interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
From interface com.atlassian.confluence.setup.BootstrapManager

Constants

public static final String CONFIG_DIR_NAME

Constant Value: "config"

Public Constructors

public DefaultBootstrapManager ()

Public Methods

public void bootstrapDatabase (DatabaseDetails dbDetails, boolean embedded)

Throws
BootstrapException

public void bootstrapDatasource (String datasourceName, String hibernateDialect)

Throws
BootstrapException

public void bootstrapSharedConfiguration (SharedConfigurationMap sharedConfig)

Starts Confluence with a database configuration that has been retrieved from another cluster node.

Throws
BootstrapException

public void checkConfigurationOnStartup ()

Throws
BootstrapException

public String getBaseUrl ()

This method is deprecated.
No replacement.

public String getConfiguredConfluenceHome ()

public String getConfluenceHome ()

Returns
  • String representing the path to Confluence's home directory on disk.

public String getDomainName ()

This method is deprecated.
No replacement.

public String getFilePathProperty (String key)

CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence.
This effectively allows confluence to be moved without breaking some system paths (like attachments)
This does not handle moves to a different drive though.

Parameters
key the applicationConfig key who's value you want to perform replacement on.

public String getWebAppContextPath ()

public boolean isWebAppContextPathSet ()

public void publishConfiguration ()

public void setClusterConfigurationHelper (ClusterConfigurationHelper clusterConfigurationHelper)

public void setConfluenceHome (String confluenceHome)

Use for test cases only

Throws
ConfigurationException

public void setDatabaseHelper (ConfluenceDatabaseHelper databaseHelper)

public void setWebAppContextPath (String webAppContextPath)

Throws
ConfigurationException

Protected Methods

protected void afterConfigurationLoaded ()

Throws
ConfigurationException

protected String getDbUrl (DatabaseDetails dbDetails)

protected boolean performPersistenceUpgrade ()

protected void postBootstrapDatabase ()