Package com.vaadin.spring.internal
Class ViewScopeImpl
java.lang.Object
com.vaadin.spring.internal.ViewScopeImpl
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.beans.factory.config.Scope
public class ViewScopeImpl
extends Object
implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.config.BeanFactoryPostProcessor
Implementation of Spring's
Scope that binds the views
and dependent beans to the visibility of the view, i.e. the scope is
activated when a user navigates into a view and destroyed when the user
navigates out of the view. Registered by default as the scope
"vaadin-view".- Author:
- Petter Holmström (petter@vaadin.com), Henri Sara (hesara@vaadin.com)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofViewCacheRetrievalStrategythat fetches theViewCacheinstance from the provided bean factory. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewCacheRetrievalStrategyReturns theViewCacheRetrievalStrategyto use.voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) voidregisterDestructionCallback(String name, Runnable callback) static voidsetViewCacheRetrievalStrategy(ViewCacheRetrievalStrategy viewCacheRetrievalStrategy) Sets theViewCacheRetrievalStrategyto use.
-
Field Details
-
VAADIN_VIEW_SCOPE_NAME
- See Also:
-
-
Constructor Details
-
ViewScopeImpl
public ViewScopeImpl()
-
-
Method Details
-
setViewCacheRetrievalStrategy
public static void setViewCacheRetrievalStrategy(ViewCacheRetrievalStrategy viewCacheRetrievalStrategy) Sets theViewCacheRetrievalStrategyto use. -
getViewCacheRetrievalStrategy
Returns theViewCacheRetrievalStrategyto use. By default,ViewScopeImpl.BeanFactoryContextViewCacheRetrievalStrategyis 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
This implementation always returns
null.- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-