public class VaadinSessionScope extends Object implements Scope, BeanFactoryPostProcessor
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 | Class and Description |
|---|---|
static class |
VaadinSessionScope.VaadinSessionBeanStoreRetrievalStrategy
Implementation of
BeanStoreRetrievalStrategy that
stores the BeanStore in the current VaadinSession. |
| 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 s,
ObjectFactory<?> objectFactory) |
static BeanStoreRetrievalStrategy |
getBeanStoreRetrievalStrategy()
Returns the
BeanStoreRetrievalStrategy to use. |
String |
getConversationId() |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) |
void |
registerDestructionCallback(String s,
Runnable runnable) |
Object |
remove(String s) |
Object |
resolveContextualObject(String s) |
static void |
setBeanStoreRetrievalStrategy(BeanStoreRetrievalStrategy beanStoreRetrievalStrategy)
Sets the
BeanStoreRetrievalStrategy to use. |
public static final String VAADIN_SESSION_SCOPE_NAME
public static void setBeanStoreRetrievalStrategy(BeanStoreRetrievalStrategy beanStoreRetrievalStrategy)
BeanStoreRetrievalStrategy to use.public static BeanStoreRetrievalStrategy getBeanStoreRetrievalStrategy()
BeanStoreRetrievalStrategy to use.
By default, VaadinSessionScope.VaadinSessionBeanStoreRetrievalStrategy is used.public Object get(String s, ObjectFactory<?> objectFactory)
public void registerDestructionCallback(String s, Runnable runnable)
registerDestructionCallback in interface Scopepublic Object resolveContextualObject(String s)
resolveContextualObject in interface Scopepublic String getConversationId()
getConversationId in interface Scopepublic void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException
postProcessBeanFactory in interface BeanFactoryPostProcessorBeansExceptionCopyright © 2015. All rights reserved.