public class

ServletContextServletModuleManagerAccessor

extends Object
java.lang.Object
   ↳ com.atlassian.plugin.servlet.util.ServletContextServletModuleManagerAccessor

Class Overview

Provides static access to a HostContainer instance. Requires initialisation before first use.

Summary

Public Constructors
ServletContextServletModuleManagerAccessor()
Public Methods
static ServletModuleManager getServletModuleManager(ServletContext servletContext)
Gets the servlet module manager in the servlet context
static void setServletModuleManager(ServletContext servletContext, ServletModuleManager servletModuleManager)
Sets the implementation of the servlet module manager
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ServletContextServletModuleManagerAccessor ()

Public Methods

public static ServletModuleManager getServletModuleManager (ServletContext servletContext)

Gets the servlet module manager in the servlet context

Parameters
servletContext the servlet context to look up the servlet module manager in
Returns
  • The servlet module manager instance
Throws
IllegalStateException If it hasn't been initialised yet

public static void setServletModuleManager (ServletContext servletContext, ServletModuleManager servletModuleManager)

Sets the implementation of the servlet module manager

Parameters
servletContext the servlet context to set the manager in
servletModuleManager the implementation to set