Class ServletContextService

java.lang.Object
org.jboss.weld.module.web.servlet.ServletContextService
All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service

public class ServletContextService extends Object implements org.jboss.weld.bootstrap.api.Service
Simple holder for ServletContexts that associates a ServletContext with the TCCL.
Author:
Jozef Hartinger
  • Constructor Details

    • ServletContextService

      public ServletContextService()
  • Method Details

    • getCurrentServletContext

      public jakarta.servlet.ServletContext getCurrentServletContext()
      Obtains the ServletContext associated with this request.
      Returns:
      the ServletContext associated with this request or null if there is no such association
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.jboss.weld.bootstrap.api.Service
    • toString

      public String toString()
      Overrides:
      toString in class Object