spring-framework / org.springframework.web.context.support / SpringBeanAutowiringSupport / processInjectionBasedOnServletContext

processInjectionBasedOnServletContext

open static fun processInjectionBasedOnServletContext(target: Any, servletContext: ServletContext): Unit

Process @Autowired injection for the given target object, based on the current root web application context as stored in the ServletContext.

Intended for use as a delegate.

Parameters

target - the target object to process

servletContext - the ServletContext to find the Spring web application context in

See Also
WebApplicationContextUtils#getWebApplicationContext(javax.servlet.ServletContext)