Package com.atlassian.confluence.setup
Interface BootstrapManager
- All Superinterfaces:
com.atlassian.config.bootstrap.AtlassianBootstrapManager
,ConfluenceBootstrapConstants
- All Known Subinterfaces:
BootstrapManagerInternal
- All Known Implementing Classes:
DefaultBootstrapManager
public interface BootstrapManager
extends com.atlassian.config.bootstrap.AtlassianBootstrapManager, ConfluenceBootstrapConstants
Controls the bootstrapping of Confluence - starting essential, core services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants
ATLASSIAN_LICENSE_KEY, ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, CONFLUENCE_LOCAL_HOME_CONSTANT, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, INSTALLATION_DATE_KEY, LICENSE_HASH_KEY, LICENSE_MESSAGE_KEY, LUCENE_INDEX_DIR_PROP, TEMP_DIR_PROP, WEBAPP_CONTEXT_PATH_KEY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bootstrapSharedConfiguration
(SharedConfigurationMap sharedConfig) Deprecated.since 5.9void
void
If there's any resource that needs to be cleaned up, do it here.Deprecated.since 7.14.Deprecated.since 7.14.Deprecated.since 7.14.Deprecated.since 5.5.Returns the name of the JNDI-based DataSource, if any.Deprecated.since 7.14 UseConfluenceDirectories
Returns the SQL dialect being used by Hibernate.Deprecated.since 7.14 UseApplicationProperties.getLocalHomeDirectory()
(plugins) or the localHome Spring bean (core)Deprecated.since 7.14 UseApplicationProperties.getSharedHomeDirectory()
(plugins) or the sharedHome Spring bean (core)Deprecated.since 7.14 UseContextPathHolder.getContextPath()
boolean
Deprecated.since 7.14 UseContextPathHolder.getContextPath()
void
setConfluenceHome
(String confluenceHome) Deprecated.since 7.14void
setWebAppContextPath
(String webAppContextPath) Deprecated.since 7.14Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, publishConfiguration, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
-
Field Details
-
JWT_PRIVATE_KEY
- Since:
- 6.0
- See Also:
-
JWT_PUBLIC_KEY
- See Also:
-
JWT_KEY_LENGTH
- See Also:
-
SYNCHRONY_SERVICE_AUTHTOKEN
- Since:
- 8.1
- See Also:
-
-
Method Details
-
getConfluenceHome
Deprecated.since 5.5. UseApplicationProperties.getHomeDirectory()
(plugins) or confluenceHome Spring bean (core)Returns local home in standalone installation and shared home in clustered installation.- Returns:
- local home in standalone installation and shared home in clustered installation
-
getApplicationHome
Deprecated.since 7.14. UseApplicationProperties.getHomeDirectory()
(plugins) or confluenceHome Spring bean (core)- Specified by:
getApplicationHome
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
-
getLocalHome
Deprecated.since 7.14 UseApplicationProperties.getLocalHomeDirectory()
(plugins) or the localHome Spring bean (core)Confluence local home directory.This directory is only visible to the local node in a cluster.
This directory should be used for data that must be node specific and cannot be shared between cluster nodes.
- Returns:
- local home directory
- Since:
- 5.5
-
setConfluenceHome
@Deprecated void setConfluenceHome(String confluenceHome) throws com.atlassian.config.ConfigurationException Deprecated.since 7.14- Throws:
com.atlassian.config.ConfigurationException
-
getConfiguredLocalHome
Deprecated.since 7.14. UseApplicationProperties.getLocalHomeDirectory()
(plugins) or localHome Spring bean (core)Returns the configured local home or null if not configured.Only bootstrap code should need this method. Most code should use
getLocalHome()
instead.- Returns:
- configured local home
- Since:
- 5.5
-
getConfiguredApplicationHome
Deprecated.since 7.14. UseApplicationProperties.getHomeDirectory()
(plugins) or confluenceHome Spring bean (core)- Specified by:
getConfiguredApplicationHome
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
-
getWebAppContextPath
Deprecated.since 7.14 UseContextPathHolder.getContextPath()
-
setWebAppContextPath
@Deprecated void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException Deprecated.since 7.14- Throws:
com.atlassian.config.ConfigurationException
-
isWebAppContextPathSet
Deprecated.since 7.14 UseContextPathHolder.getContextPath()
-
checkConfigurationOnStartup
void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
cleanupOnShutdown
void cleanupOnShutdown()If there's any resource that needs to be cleaned up, do it here. -
getDataSourceName
Returns the name of the JNDI-based DataSource, if any.- Returns:
- empty if Confluence is using a direct JDBC connection
- Since:
- 6.7.0
-
getHibernateDialect
String getHibernateDialect()Returns the SQL dialect being used by Hibernate.- Returns:
- see above
- Since:
- 6.7.0
- See Also:
-
AvailableSettings.DIALECT
-
getFilePathProperty
Deprecated.since 7.14 UseConfluenceDirectories
- Specified by:
getFilePathProperty
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
-