com.atlassian.plugin.servlet.util
Class ServletContextServletModuleManagerAccessor

java.lang.Object
  extended by com.atlassian.plugin.servlet.util.ServletContextServletModuleManagerAccessor

public class ServletContextServletModuleManagerAccessor
extends Object

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

Since:
2.2.0

Constructor Summary
ServletContextServletModuleManagerAccessor()
           
 
Method Summary
static ServletModuleManager getServletModuleManager(javax.servlet.ServletContext servletContext)
          Gets the servlet module manager in the servlet context
static void setServletModuleManager(javax.servlet.ServletContext servletContext, ServletModuleManager servletModuleManager)
          Sets the implementation of the servlet module manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextServletModuleManagerAccessor

public ServletContextServletModuleManagerAccessor()
Method Detail

getServletModuleManager

public static ServletModuleManager getServletModuleManager(javax.servlet.ServletContext servletContext)
                                                    throws IllegalStateException
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 or null if it is not there
Throws:
IllegalStateException

setServletModuleManager

public static void setServletModuleManager(javax.servlet.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


Copyright © 2015 Atlassian. All rights reserved.