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 forServletContexts that associates a ServletContext with the TCCL.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description ServletContextService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()jakarta.servlet.ServletContextgetCurrentServletContext()Obtains theServletContextassociated with this request.StringtoString()
-
-
-
Method Detail
-
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
-
-