public interface

JohnsonProvider

com.atlassian.jira.util.johnson.JohnsonProvider
Known Indirect Subclasses

Class Overview

A wrapper around Johnson static methods to allow easier mocking in tests.

Summary

Public Methods
JohnsonConfig getConfig()
Retrieves the config for the current ServletContext, as defined by ServletActionContext.getServletContext().
JohnsonEventContainer getContainer()
Retrieves the container for the current ServletContext, as defined by ServletActionContext.getServletContext().

Public Methods

public 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.

public JohnsonEventContainer 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.