Request-backed {@link org.springframework.beans.factory.config.Scope}implementation.
Relies on a thread-bound {@link RequestAttributes} instance, whichcan be exported through {@link RequestContextListener}, {@link org.springframework.web.filter.RequestContextFilter} or{@link org.springframework.web.servlet.DispatcherServlet}.
This Scope
will also work for Portlet environments, through an alternate RequestAttributes
implementation (as exposed out-of-the-box by Spring's {@link org.springframework.web.portlet.DispatcherPortlet}.
@author Rod Johnson
@author Juergen Hoeller
@author Rob Harrop
@since 2.0
@see RequestContextHolder#currentRequestAttributes()
@see RequestAttributes#SCOPE_REQUEST
@see RequestContextListener
@see org.springframework.web.filter.RequestContextFilter
@see org.springframework.web.servlet.DispatcherServlet
@see org.springframework.web.portlet.DispatcherPortlet