public class SessionScope extends AbstractRequestAttributesScope
Scope
implementation.
Relies on a thread-bound RequestAttributes instance, which
can be exported through RequestContextListener,
RequestContextFilter or
org.springframework.web.servlet.DispatcherServlet.
RequestContextHolder.currentRequestAttributes(),
RequestAttributes.SCOPE_SESSION,
RequestContextListener,
RequestContextFilter,
org.springframework.web.servlet.DispatcherServlet| Constructor and Description |
|---|
SessionScope() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
protected int |
getScope()
Template method that determines the actual target scope.
|
Object |
remove(String name) |
registerDestructionCallback, resolveContextualObjectprotected int getScope()
AbstractRequestAttributesScopegetScope in class AbstractRequestAttributesScopeRequestAttributes constantRequestAttributes.SCOPE_REQUEST,
RequestAttributes.SCOPE_SESSIONpublic String getConversationId()
public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopeget in class AbstractRequestAttributesScope@Nullable public Object remove(String name)
remove in interface org.springframework.beans.factory.config.Scoperemove in class AbstractRequestAttributesScope