com.atlassian.crowd.manager.bootstrap
Class CrowdBootstrapManagerImpl

java.lang.Object
  extended by com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
      extended by com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManagerImpl
All Implemented Interfaces:
com.atlassian.config.bootstrap.AtlassianBootstrapManager, CrowdBootstrapManager

public class CrowdBootstrapManagerImpl
extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
implements CrowdBootstrapManager

BootstrapManager is responsible for initializing the dependencies of Crowd environment.

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


Field Summary
 
Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, log, setupPersister
 
Fields inherited from interface com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManager
CONFIG_DIRECTORY_PARAM, CROWD_SID
 
Constructor Summary
CrowdBootstrapManagerImpl()
           
 
Method Summary
 String getConfigDirectory()
           
 String getServerID()
           
static boolean isContainterReady(javax.servlet.ServletContext servletContext)
           
protected  void postBootstrapDatabase()
           
 void setConfigDirectory(String configurationDirectory)
           
 void setMappingResources(MappingResources mappingResources)
           
 void setServerID(String sid)
           
 
Methods inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
afterConfigurationLoaded, bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getDbUrl, getFilePathProperty, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTables, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, performPersistenceUpgrade, publishConfiguration, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister, setTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getFilePathProperty, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, publishConfiguration, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
 

Constructor Detail

CrowdBootstrapManagerImpl

public CrowdBootstrapManagerImpl()
Method Detail

getConfigDirectory

public String getConfigDirectory()

setConfigDirectory

public void setConfigDirectory(String configurationDirectory)

postBootstrapDatabase

protected void postBootstrapDatabase()
Overrides:
postBootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager

isContainterReady

public static boolean isContainterReady(javax.servlet.ServletContext servletContext)
Parameters:
servletContext - servlet context.
Returns:
true if the bootstrap succeeded and Hibernate is set up. This means the WebApplicationContext has been set up for Spring.

getServerID

public String getServerID()
Specified by:
getServerID in interface CrowdBootstrapManager

setServerID

public void setServerID(String sid)
                 throws com.atlassian.config.ConfigurationException
Specified by:
setServerID in interface CrowdBootstrapManager
Throws:
com.atlassian.config.ConfigurationException

setMappingResources

public void setMappingResources(MappingResources mappingResources)


Copyright © 2012 Atlassian. All Rights Reserved.