Package org.omnifaces.cdi.viewscope
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:
ViewScoped,ViewScopeManager
-
-
Constructor Summary
Constructors Constructor Description ViewScopeStorageInViewState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanStoragegetBeanStorage(UUID id)Returns the bean storage identified by given ID, or null if it does not exist.UUIDgetBeanStorageId()Returns currently active bean storage ID, or null if it does not exist.voidsetBeanStorage(UUID beanStorageId, BeanStorage beanStorage)Sets the given bean storage identified by the given ID.
-
-
-
Method Detail
-
getBeanStorageId
public UUID getBeanStorageId()
Description copied from interface:ViewScopeStorageReturns currently active bean storage ID, or null if it does not exist.- Specified by:
getBeanStorageIdin interfaceViewScopeStorage- Returns:
- Currently active bean storage ID, or null if it does not exist.
-
getBeanStorage
public BeanStorage getBeanStorage(UUID id)
Description copied from interface:ViewScopeStorageReturns the bean storage identified by given ID, or null if it does not exist.- Specified by:
getBeanStoragein interfaceViewScopeStorage- 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:ViewScopeStorageSets the given bean storage identified by the given ID.- Specified by:
setBeanStoragein interfaceViewScopeStorage- Parameters:
beanStorageId- The bean storage identifier.beanStorage- The bean storage.
-
-