Package com.atlassian.bamboo.web.utils
Class JohnsonEventContainerServiceImpl
java.lang.Object
com.atlassian.bamboo.web.utils.JohnsonEventContainerServiceImpl
- All Implemented Interfaces:
JohnsonEventContainerService
@Service
public class JohnsonEventContainerServiceImpl
extends Object
implements JohnsonEventContainerService
Implementation of the
JohnsonEventContainerService
interface
Provides methods to obtain the singleton instance of JohnsonEventContainer
or to retrieve an instance specific to a given ServletContext
- Since:
- 10.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.johnson.JohnsonEventContainer
get
(javax.servlet.ServletContext context) Retrieves theJohnsonEventContainer
associated with the specifiedServletContext
@NotNull com.atlassian.johnson.JohnsonEventContainer
Retrieves the singleton instance ofJohnsonEventContainer
-
Constructor Details
-
JohnsonEventContainerServiceImpl
public JohnsonEventContainerServiceImpl()
-
-
Method Details
-
getInstance
@NotNull public @NotNull com.atlassian.johnson.JohnsonEventContainer getInstance()Retrieves the singleton instance ofJohnsonEventContainer
- Specified by:
getInstance
in interfaceJohnsonEventContainerService
- Returns:
- the singleton instance of JohnsonEventContainer
-
get
@Nullable public @Nullable com.atlassian.johnson.JohnsonEventContainer get(javax.servlet.ServletContext context) Retrieves theJohnsonEventContainer
associated with the specifiedServletContext
- Specified by:
get
in interfaceJohnsonEventContainerService
- Parameters:
context
- the ServletContext for which to retrieve the JohnsonEventContainer- Returns:
- the JohnsonEventContainer associated with the given ServletContext
-