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 SummaryConstructors
- 
Method SummaryMethods inherited from class org.springframework.web.context.request.AbstractRequestAttributesScoperegisterDestructionCallback, resolveContextualObject
- 
Constructor Details- 
SessionScopepublic SessionScope()
 
- 
- 
Method Details- 
getScopeprotected int getScope()Description copied from class:AbstractRequestAttributesScopeTemplate method that determines the actual target scope.- Specified by:
- getScopein class- AbstractRequestAttributesScope
- Returns:
- the target scope, in the form of an appropriate
 RequestAttributesconstant
- See Also:
 
- 
getConversationId
- 
get- Specified by:
- getin interface- org.springframework.beans.factory.config.Scope
- Overrides:
- getin class- AbstractRequestAttributesScope
 
- 
remove- Specified by:
- removein interface- org.springframework.beans.factory.config.Scope
- Overrides:
- removein class- AbstractRequestAttributesScope
 
 
-