- 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 BeanStorage
getBeanStorage(UUID id)
Returns the bean storage identified by given ID, or null if it does not exist.UUID
getBeanStorageId()
Returns currently active bean storage ID, or null if it does not exist.void
setBeanStorage(UUID beanStorageId, BeanStorage beanStorage)
Sets the given bean storage identified by the given ID.
-
-
-
Method Detail
-
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 interfaceViewScopeStorage
- 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 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:ViewScopeStorage
Sets the given bean storage identified by the given ID.- Specified by:
setBeanStorage
in interfaceViewScopeStorage
- Parameters:
beanStorageId
- The bean storage identifier.beanStorage
- The bean storage.
-
-