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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.johnson.JohnsonEventContainerget(jakarta.servlet.ServletContext context) Retrieves theJohnsonEventContainerassociated with the specifiedServletContext@NotNull com.atlassian.johnson.JohnsonEventContainerRetrieves 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:
getInstancein interfaceJohnsonEventContainerService- Returns:
- the singleton instance of JohnsonEventContainer
-
get
@Nullable public @Nullable com.atlassian.johnson.JohnsonEventContainer get(jakarta.servlet.ServletContext context) Retrieves theJohnsonEventContainerassociated with the specifiedServletContext- Specified by:
getin interfaceJohnsonEventContainerService- Parameters:
context- the ServletContext for which to retrieve the JohnsonEventContainer- Returns:
- the JohnsonEventContainer associated with the given ServletContext
-