Package com.atlassian.jira.util.johnson
Interface JohnsonProvider
- All Known Implementing Classes:
DefaultJohnsonProvider
public interface JohnsonProvider
A wrapper around Johnson static methods to allow easier mocking in tests.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIndicates whether the container contains any events that prevent JIRA from starting upcom.atlassian.johnson.config.JohnsonConfigRetrieves the config for the current ServletContext, as defined by ServletActionContext.getServletContext().Retrieves the container for the current ServletContext, as defined by ServletActionContext.getServletContext().static booleanIndicates whether the current instance started up properly.
-
Method Details
-
getContainer
JiraJohnsonContainer getContainer()Retrieves the container for the current ServletContext, as defined by ServletActionContext.getServletContext(). This is equivalent to calling getContainer(ServletContextProvider.getServletContext()) but saves an import, a null check on the servlet context and a static call to help avoid testing problems. -
getConfig
com.atlassian.johnson.config.JohnsonConfig getConfig()Retrieves the config for the current ServletContext, as defined by ServletActionContext.getServletContext(). This is equivalent to calling getConfig(ServletContextProvider.getServletContext()) but saves an import, a null check on the servlet context and a static call to help avoid testing problems. -
anyJohnsonEventsPreventStartup
static boolean anyJohnsonEventsPreventStartup()Indicates whether the container contains any events that prevent JIRA from starting up- Returns:
- see above
- Since:
- 7.4
-
isStartupOk
static boolean isStartupOk()Indicates whether the current instance started up properly.- Returns:
- see above
- Since:
- 7.7
-