@ParametersAreNonnullByDefault public class FailedStartupContainerRegistrar extends Object implements ContainerExtender
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 and Description |
---|
FailedStartupContainerRegistrar() |
Modifier and Type | Method and Description |
---|---|
void |
extend(ComponentContainer register)
Extends the given container.
|
ComponentContainer.ContainerLevel |
getNewContainerLevel()
Returns the level of the extended container.
|
@Nonnull public ComponentContainer.ContainerLevel getNewContainerLevel()
ContainerExtender
getNewContainerLevel
in interface ContainerExtender
public void extend(ComponentContainer register)
ContainerExtender
extend
in interface ContainerExtender
register
- the container to extendCopyright © 2002-2019 Atlassian. All Rights Reserved.