Class ViewScopeStorageInSession

    • Constructor Detail

      • ViewScopeStorageInSession

        public ViewScopeStorageInSession()
    • Method Detail

      • postConstructSession

        @PostConstruct
        public void postConstructSession()
        Create a new LRU map of active view scopes with maximum weighted capacity depending on several context params. See javadoc of ViewScoped for 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 beanStorageId)
        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:
        beanStorageId - 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.
      • destroyBeans

        public void destroyBeans​(UUID beanStorageId)
        Destroys all beans associated with given bean storage identifier.
        Parameters:
        beanStorageId - The bean storage identifier.
      • preDestroySession

        @PreDestroy
        public void preDestroySession()
        This method is invoked during session destroy, in that case destroy all beans in all active view scopes.