public class UIScopeImpl extends Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.config.BeanFactoryPostProcessor
Scope that binds the UIs and
dependent beans to the current VaadinSession (as
opposed to the current Servlet session). Registered by default as the scope "
"vaadin-ui"".UIScope| Modifier and Type | Class and Description |
|---|---|
static class |
UIScopeImpl.VaadinSessionBeanStoreRetrievalStrategy
Implementation of
BeanStoreRetrievalStrategy that stores the
BeanStore in the current VaadinSession. |
| Modifier and Type | Field and Description |
|---|---|
static String |
VAADIN_UI_SCOPE_NAME |
| Constructor and Description |
|---|
UIScopeImpl() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupSession(com.vaadin.server.VaadinSession session)
Cleans up everything associated with all UI scopes of a specific session.
|
Object |
get(String s,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
static BeanStoreRetrievalStrategy |
getBeanStoreRetrievalStrategy()
Returns the
BeanStoreRetrievalStrategy to use. |
String |
getConversationId() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.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_UI_SCOPE_NAME
public static void setBeanStoreRetrievalStrategy(BeanStoreRetrievalStrategy beanStoreRetrievalStrategy)
BeanStoreRetrievalStrategy to use.public static BeanStoreRetrievalStrategy getBeanStoreRetrievalStrategy()
BeanStoreRetrievalStrategy to use. By default,
UIScopeImpl.VaadinSessionBeanStoreRetrievalStrategy
is used.public Object get(String s, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic Object remove(String s)
remove in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(String s, Runnable runnable)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopepublic Object resolveContextualObject(String s)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.Scopepublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic static void cleanupSession(com.vaadin.server.VaadinSession session)
session - the Vaadin session for which to do the clean up, not
nullCopyright © 2017 Vaadin Ltd. All Rights Reserved.