Class 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 Detail

      • ServletContextService

        public ServletContextService()
    • Method Detail

      • 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