Interface ViewCache

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultViewCache

public interface ViewCache extends Serializable
A view cache is used to keep track of the currently active view and its corresponding BeanStore. It is also responsible for cleaning up views that have gone out of scope. Used as a delegate by ViewScopeImpl. For internal use only.
Author:
Petter Holmström (petter@vaadin.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    creatingView(String viewName)
    Called by the view provider before a view with the specified name will be created.
    Returns the bean store for the currently active view.
    void
    viewCreated(String viewName, com.vaadin.navigator.View viewInstance)
    Called by the view provider after a view with the specified name has been created.
  • Method Details

    • creatingView

      void creatingView(String viewName)
      Called by the view provider before a view with the specified name will be created.
      Parameters:
      viewName - the name of the view (not the name of the Spring bean).
      See Also:
    • viewCreated

      void viewCreated(String viewName, com.vaadin.navigator.View viewInstance)
      Called by the view provider after a view with the specified name has been created.
      Parameters:
      viewName - the name of the view (not the name of the Spring bean).
      viewInstance - the created view instance, or null if the instance could not be created for some reason.
      See Also:
    • getCurrentViewBeanStore

      BeanStore getCurrentViewBeanStore() throws IllegalStateException
      Returns the bean store for the currently active view.
      Throws:
      IllegalStateException - if there is no active view.