Class ViewScopeContextualStorage

  • All Implemented Interfaces:
    Serializable

    public class ViewScopeContextualStorage
    extends Object
    implements Serializable
    This Storage holds all information needed for storing View Scope instances in a context. This scope requires passivation and is not concurrent.
    See Also:
    Serialized Form
    • Constructor Detail

      • ViewScopeContextualStorage

        public ViewScopeContextualStorage​(javax.enterprise.inject.spi.BeanManager beanManager)
    • Method Detail

      • createContextualInstance

        public <T> T createContextualInstance​(javax.enterprise.context.spi.Contextual<T> bean,
                                              javax.enterprise.context.spi.CreationalContext<T> creationalContext)
        Type Parameters:
        T -
        Parameters:
        bean -
        creationalContext -
        Returns:
      • getBeanKey

        public <T> Object getBeanKey​(javax.enterprise.context.spi.Contextual<T> bean)
        If the context is a passivating scope then we return the passivationId of the Bean. Otherwise we use the Bean directly.
        Returns:
        the key to use in the context map
      • isActive

        public boolean isActive()
      • deactivate

        public void deactivate()