| | |
| | | import com.gitblit.manager.IGitblit; |
| | | import com.gitblit.manager.IManager; |
| | | import com.gitblit.manager.INotificationManager; |
| | | import com.gitblit.manager.IPluginManager; |
| | | import com.gitblit.manager.IProjectManager; |
| | | import com.gitblit.manager.IRepositoryManager; |
| | | import com.gitblit.manager.IRuntimeManager; |
| | | import com.gitblit.manager.IUserManager; |
| | | import com.gitblit.transport.ssh.IPublicKeyManager; |
| | | import com.gitblit.utils.ContainerUtils; |
| | | import com.gitblit.utils.StringUtils; |
| | | |
| | |
| | | * Construct a Gitblit WAR/Express context. |
| | | */ |
| | | public GitblitContext() { |
| | | this.goSettings = null; |
| | | this.goBaseFolder = null; |
| | | gitblit = this; |
| | | this(null, null); |
| | | } |
| | | |
| | | /** |
| | |
| | | String contextRealPath = context.getRealPath("/"); |
| | | File contextFolder = (contextRealPath != null) ? new File(contextRealPath) : null; |
| | | |
| | | // if the base folder dosen't match the default assume they don't want to use express, |
| | | // if the base folder dosen't match the default assume they don't want to use express, |
| | | // this allows for other containers to customise the basefolder per context. |
| | | String defaultBase = Constants.contextFolder$ + "/WEB-INF/data"; |
| | | String base = lookupBaseFolderFromJndi(); |
| | |
| | | startManager(injector, INotificationManager.class); |
| | | startManager(injector, IUserManager.class); |
| | | startManager(injector, IAuthenticationManager.class); |
| | | startManager(injector, IPublicKeyManager.class); |
| | | startManager(injector, IRepositoryManager.class); |
| | | startManager(injector, IProjectManager.class); |
| | | startManager(injector, IFederationManager.class); |
| | | startManager(injector, IGitblit.class); |
| | | |
| | | // start the plugin manager last so that plugins can depend on |
| | | // deterministic access to all other managers in their start() methods |
| | | startManager(injector, IPluginManager.class); |
| | | |
| | | logger.info(""); |
| | | logger.info("All managers started."); |
| | | logger.info(""); |