Package com.vaadin.spring.internal
Class UIScopeImpl
java.lang.Object
com.vaadin.spring.internal.UIScopeImpl
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.beans.factory.config.Scope
public class UIScopeImpl
extends Object
implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.config.BeanFactoryPostProcessor
Implementation of Spring's
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"".- Author:
- Petter Holmström (petter@vaadin.com)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofBeanStoreRetrievalStrategythat stores theBeanStorein the currentVaadinSession. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanupSession(com.vaadin.server.VaadinSession session) Cleans up everything associated with all UI scopes of a specific session.static BeanStoreRetrievalStrategyReturns theBeanStoreRetrievalStrategyto use.voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) voidregisterDestructionCallback(String s, Runnable runnable) static voidsetBeanStoreRetrievalStrategy(BeanStoreRetrievalStrategy beanStoreRetrievalStrategy) Sets theBeanStoreRetrievalStrategyto use.
-
Field Details
-
VAADIN_UI_SCOPE_NAME
- See Also:
-
-
Constructor Details
-
UIScopeImpl
public UIScopeImpl()
-
-
Method Details
-
setBeanStoreRetrievalStrategy
public static void setBeanStoreRetrievalStrategy(BeanStoreRetrievalStrategy beanStoreRetrievalStrategy) Sets theBeanStoreRetrievalStrategyto use. -
getBeanStoreRetrievalStrategy
Returns theBeanStoreRetrievalStrategyto use. By default,UIScopeImpl.VaadinSessionBeanStoreRetrievalStrategyis used. -
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
-
cleanupSession
public static void cleanupSession(com.vaadin.server.VaadinSession session) Cleans up everything associated with all UI scopes of a specific session.- Parameters:
session- the Vaadin session for which to do the clean up, notnull
-