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_SESSIONRequestContextListenerRequestContextFilterorg.springframework.web.servlet.DispatcherServlet
-
Constructor Summary
Constructors -
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:AbstractRequestAttributesScopeTemplate method that determines the actual target scope.- Specified by:
getScopein classAbstractRequestAttributesScope- Returns:
- the target scope, in the form of an appropriate
RequestAttributesconstant - See Also:
-
getConversationId
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope- Overrides:
getin classAbstractRequestAttributesScope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope- Overrides:
removein classAbstractRequestAttributesScope
-