Class RouteScopedContext

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

public class RouteScopedContext extends AbstractContext
Context for @RouteScoped beans.
  • Constructor Details

    • RouteScopedContext

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

    • init

      public void init(jakarta.enterprise.inject.spi.BeanManager beanManager, Supplier<Boolean> isUIContextActive)
    • getScope

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

      public boolean isActive()
    • getActiveContextualStorages

      protected List<ContextualStorage> getActiveContextualStorages()
      Overrides:
      getActiveContextualStorages in class AbstractContext
    • 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
      createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.
      Returns:
      the underlying storage