Class SessionScope
java.lang.Object
org.springframework.web.context.request.AbstractRequestAttributesScope
org.springframework.web.context.request.SessionScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
Session-backed
Scope
implementation.
Relies on a thread-bound RequestAttributes
instance, which
can be exported through RequestContextListener
,
RequestContextFilter
or
org.springframework.web.servlet.DispatcherServlet
.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller, Rob Harrop
- See Also:
-
RequestContextHolder.currentRequestAttributes()
RequestAttributes.SCOPE_SESSION
RequestContextListener
RequestContextFilter
org.springframework.web.servlet.DispatcherServlet
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.web.context.request.AbstractRequestAttributesScope
registerDestructionCallback, resolveContextualObject
-
Constructor Details
-
SessionScope
public SessionScope()
-
-
Method Details
-
getScope
protected int getScope()Description copied from class:AbstractRequestAttributesScope
Template method that determines the actual target scope.- Specified by:
getScope
in classAbstractRequestAttributesScope
- Returns:
- the target scope, in the form of an appropriate
RequestAttributes
constant - See Also:
-
getConversationId
-
get
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
- Overrides:
get
in classAbstractRequestAttributesScope
-
remove
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
- Overrides:
remove
in classAbstractRequestAttributesScope
-