Class ServletContextService
java.lang.Object
org.jboss.weld.module.web.servlet.ServletContextService
- All Implemented Interfaces:
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 theServletContextassociated with this request.- Returns:
- the ServletContext associated with this request or null if there is no such association
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
toString
-