Class AbstractContextualStorageHolder<T extends ContextualStorage>

    • Constructor Detail

      • AbstractContextualStorageHolder

        public AbstractContextualStorageHolder()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • forceNewStorage

        public Map<String,​T> forceNewStorage()
        This method will replace the storageMap and with a new empty one. This method can be used to properly destroy the BeanHolder beans without having to sync heavily. Any Contextual.destroy(Object, jakarta.enterprise.context.spi.CreationalContext) should be performed on the returned old storage map.
        Returns:
        the old storageMap.
      • getStorageMap

        public Map<String,​T> getStorageMap()
      • getContextualStorage

        public T getContextualStorage​(String slotId)
      • getContextualStorage

        public T getContextualStorage​(String slotId,
                                      boolean create)
      • newContextualStorage

        protected abstract T newContextualStorage​(String slotId)
      • preDestroy

        @PreDestroy
        public void preDestroy()
      • destroyAll

        public void destroyAll​(FacesContext facesContext)
      • destroyAll

        public void destroyAll​(T contextualStorage,
                               FacesContext facesContext)