com.vaadin.spring.internal
Class DefaultViewCache

java.lang.Object
  extended by com.vaadin.spring.internal.DefaultViewCache
All Implemented Interfaces:
ViewCache, Serializable

public class DefaultViewCache
extends Object
implements ViewCache

Default implementation of ViewCache. For internal use only.

Author:
Petter Holmström (petter@vaadin.com)
See Also:
Serialized Form

Constructor Summary
DefaultViewCache()
           
 
Method Summary
 void creatingView(String viewName)
          Called by SpringViewProvider when a view scoped view is about to be created.
 BeanStore getCurrentViewBeanStore()
          Returns the bean store for the currently active view.
 void viewCreated(String viewName, com.vaadin.navigator.View viewInstance)
          Called by SpringViewProvider when a view scoped view has been created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewCache

public DefaultViewCache()
Method Detail

creatingView

public void creatingView(String viewName)
Called by SpringViewProvider when a view scoped view is about to be created.

Specified by:
creatingView in interface ViewCache
Parameters:
viewName - the name of the view (not the bean name).
See Also:
SpringView.name()

viewCreated

public void viewCreated(String viewName,
                        com.vaadin.navigator.View viewInstance)
Called by SpringViewProvider when a view scoped view has been created.

Specified by:
viewCreated in interface ViewCache
Parameters:
viewName - the name of the view (not the bean name).
viewInstance - the created view instance, or null if the view could not be created.
See Also:
SpringView.name()

getCurrentViewBeanStore

public BeanStore getCurrentViewBeanStore()
Description copied from interface: ViewCache
Returns the bean store for the currently active view.

Specified by:
getCurrentViewBeanStore in interface ViewCache


Copyright © 2016 Vaadin Ltd. All Rights Reserved.