com.atlassian.jira.util.johnson.JohnsonProvider |
![]() |
A wrapper around Johnson static methods to allow easier mocking in tests.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the config for the current ServletContext, as defined by ServletActionContext.getServletContext().
| |||||||||||
Retrieves the container for the current ServletContext, as defined by ServletActionContext.getServletContext().
|
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.
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.