Class AbstractSessionBeanStore

    • Constructor Detail

      • AbstractSessionBeanStore

        public AbstractSessionBeanStore​(NamingScheme namingScheme,
                                        boolean attributeLazyFetchingEnabled)
        Parameters:
        namingScheme -
        attributeLazyFetchingEnabled -
    • Method Detail

      • getSession

        protected abstract javax.servlet.http.HttpSession getSession​(boolean create)
      • getAttributeNames

        protected Iterator<String> getAttributeNames()
        Description copied from class: AttributeBeanStore
        Gets an enumeration of the attribute names present in the underlying storage. The collection must guarantee non-interference with other threads when iterating over it using iterator.
        Specified by:
        getAttributeNames in class AttributeBeanStore
        Returns:
        The attribute names
      • removeAttribute

        protected void removeAttribute​(String key)
        Description copied from class: AttributeBeanStore
        Removes an attribute from the underlying storage
        Specified by:
        removeAttribute in class AttributeBeanStore
        Parameters:
        key - The (prefixed) id of the attribute to remove
      • setAttribute

        protected void setAttribute​(String key,
                                    Object instance)
        Description copied from class: AttributeBeanStore
        Sets an instance under a key in the underlying storage
        Specified by:
        setAttribute in class AttributeBeanStore
        Parameters:
        key - The (prefixed) id of the attribute to set
        instance - The instance
      • get

        public <T> org.jboss.weld.context.api.ContextualInstance<T> get​(org.jboss.weld.serialization.spi.BeanIdentifier id)
        Description copied from interface: BeanStore
        Gets an instance of a contextual from the store
        Specified by:
        get in interface BeanStore
        Overrides:
        get in class AttributeBeanStore
        Parameters:
        id - The id of the contextual to return
        Returns:
        The instance or null if not found
      • getAttribute

        protected Object getAttribute​(String prefixedId)
        Description copied from class: AttributeBeanStore
        Gets an attribute from the underlying storage
        Specified by:
        getAttribute in class AttributeBeanStore
        Parameters:
        prefixedId - The (prefixed) id of the attribute
        Returns:
        The data