Class ViewScopeStorageInViewState

java.lang.Object
org.omnifaces.cdi.viewscope.ViewScopeStorageInViewState
All Implemented Interfaces:
ViewScopeStorage

@Dependent public class ViewScopeStorageInViewState extends Object implements ViewScopeStorage
Stores view scoped bean instances in Faces view state itself.
Since:
2.6
Author:
Bauke Scholtz
See Also:
  • Constructor Details

    • ViewScopeStorageInViewState

      public ViewScopeStorageInViewState()
  • Method Details

    • getBeanStorageId

      public UUID getBeanStorageId()
      Description copied from interface: ViewScopeStorage
      Returns currently active bean storage ID, or null if it does not exist.
      Specified by:
      getBeanStorageId in interface ViewScopeStorage
      Returns:
      Currently active bean storage ID, or null if it does not exist.
    • getBeanStorage

      public BeanStorage getBeanStorage(UUID id)
      Description copied from interface: ViewScopeStorage
      Returns the bean storage identified by given ID, or null if it does not exist.
      Specified by:
      getBeanStorage in interface ViewScopeStorage
      Parameters:
      id - The bean storage identifier.
      Returns:
      The bean storage identified by given ID, or null if it does not exist.
    • setBeanStorage

      public void setBeanStorage(UUID beanStorageId, BeanStorage beanStorage)
      Description copied from interface: ViewScopeStorage
      Sets the given bean storage identified by the given ID.
      Specified by:
      setBeanStorage in interface ViewScopeStorage
      Parameters:
      beanStorageId - The bean storage identifier.
      beanStorage - The bean storage.