@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) @Scope("session") class SessionScope
@SessionScope
is a specialization of Scope for a component whose lifecycle is bound to the current web session.
Specifically, @SessionScope
is a composed annotation that acts as a shortcut for @Scope("session")
with the default #proxyMode
set to TARGET_CLASS
.
@SessionScope
may be used as a meta-annotation to create custom composed annotations.
Author
Sam Brannen
Since
4.3
See Also
RequestScopeApplicationScopeorg.springframework.context.annotation.Scopeorg.springframework.web.context.WebApplicationContext#SCOPE_SESSIONorg.springframework.web.context.request.SessionScopeorg.springframework.stereotype.Componentorg.springframework.context.annotation.Bean
SessionScope(proxyMode: ScopedProxyMode)
Specifically,
|
val proxyMode: ScopedProxyMode
Alias for Defaults to |