public class VaadinSessionScope extends Object
Scope that binds the beans
to the current VaadinSession (as opposed to
the current Servlet session). Registered by default as the scope "
"vaadin-session"".VaadinSessionScope| Modifier and Type | Field and Description |
|---|---|
static String |
VAADIN_SESSION_SCOPE_NAME |
| Constructor and Description |
|---|
VaadinSessionScope() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
protected com.vaadin.flow.spring.scopes.BeanStore |
getBeanStore()
Gets bean store for this scope.
|
String |
getConversationId() |
protected com.vaadin.flow.server.VaadinSession |
getVaadinSession()
Gets current Vaadin session.
|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
Object |
resolveContextualObject(String key) |
public static final String VAADIN_SESSION_SCOPE_NAME
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
public String getConversationId()
protected com.vaadin.flow.spring.scopes.BeanStore getBeanStore()
public Object resolveContextualObject(String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic Object remove(String name)
remove in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopeprotected com.vaadin.flow.server.VaadinSession getVaadinSession()
Throws IllegalStateException if there is no current Vaadin
session scope or it's not opened.
Copyright © 2025 Vaadin Ltd. All Rights Reserved.