@SessionScoped public class ViewScopeStorageInSession extends Object implements ViewScopeStorage, Serializable
ViewScoped
,
ViewScopeManager
,
Serialized FormConstructor and Description |
---|
ViewScopeStorageInSession() |
Modifier and Type | Method and Description |
---|---|
void |
destroyBeans(UUID beanStorageId)
Destroys all beans associated with given bean storage identifier.
|
BeanStorage |
getBeanStorage(UUID beanStorageId)
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 |
postConstructSession()
Create a new LRU map of active view scopes with maximum weighted capacity depending on several context params.
|
void |
preDestroySession()
This method is invoked during session destroy, in that case destroy all beans in all active view scopes.
|
void |
setBeanStorage(UUID beanStorageId,
BeanStorage beanStorage)
Sets the given bean storage identified by the given ID.
|
@PostConstruct public void postConstructSession()
ViewScoped
for details.public UUID getBeanStorageId()
ViewScopeStorage
getBeanStorageId
in interface ViewScopeStorage
public BeanStorage getBeanStorage(UUID beanStorageId)
ViewScopeStorage
getBeanStorage
in interface ViewScopeStorage
beanStorageId
- The bean storage identifier.public void setBeanStorage(UUID beanStorageId, BeanStorage beanStorage)
ViewScopeStorage
setBeanStorage
in interface ViewScopeStorage
beanStorageId
- The bean storage identifier.beanStorage
- The bean storage.public void destroyBeans(UUID beanStorageId)
beanStorageId
- The bean storage identifier.@PreDestroy public void preDestroySession()
Copyright © 2012–2017 OmniFaces. All rights reserved.