Class FailedStartupContainerRegistrar
java.lang.Object
com.atlassian.jira.component.pico.registrar.FailedStartupContainerRegistrar
- All Implemented Interfaces:
ContainerExtender
@ParametersAreNonnullByDefault
public class FailedStartupContainerRegistrar
extends Object
implements ContainerExtender
If JIRA fails its Startup checks, then we use this to add just a few more components to the Pico Container.
For example, if the database build number is higher than the application code build number, we fail startup.
SetupContainerRegistrar does a similar trick of adding components to exising bootstrap container. But SetupContainerRegistrar requirements would clash with the requirements below, so we need to ensure we only extend Bootstrap with one or the other.
JRA-43308: We need to add just enough components such that the Servlet Filters can work without throwing an NPE, and we need a minimal ability of localisation for the errors.jsp page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
extend
(ComponentContainer register) Extends the given container.Returns the level of the extended container.
-
Constructor Details
-
FailedStartupContainerRegistrar
public FailedStartupContainerRegistrar()
-
-
Method Details
-
getNewContainerLevel
Description copied from interface:ContainerExtender
Returns the level of the extended container.- Specified by:
getNewContainerLevel
in interfaceContainerExtender
- Returns:
- see above
-
extend
Description copied from interface:ContainerExtender
Extends the given container.- Specified by:
extend
in interfaceContainerExtender
- Parameters:
register
- the container to extend
-