Class UIScopedContext

java.lang.Object
com.vaadin.cdi.util.AbstractContext
com.vaadin.cdi.context.UIScopedContext
All Implemented Interfaces:
jakarta.enterprise.context.spi.Context

public class UIScopedContext extends AbstractContext
UIScopedContext is the context for @UIScoped beans.
  • Constructor Details

    • UIScopedContext

      public UIScopedContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
  • Method Details

    • getContextualStorage

      protected ContextualStorage getContextualStorage(jakarta.enterprise.context.spi.Contextual<?> contextual, boolean createIfNotExist)
      Description copied from class: AbstractContext
      An implementation has to return the underlying storage which contains the items held in the Context.
      Specified by:
      getContextualStorage in class AbstractContext
      Parameters:
      createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.
      Returns:
      the underlying storage
    • init

      public void init(jakarta.enterprise.inject.spi.BeanManager beanManager)
    • getScope

      public Class<? extends Annotation> getScope()
    • isActive

      public boolean isActive()