Class VaadinSessionScopedContext

java.lang.Object
com.vaadin.quarkus.context.AbstractContext
com.vaadin.quarkus.context.VaadinSessionScopedContext
All Implemented Interfaces:
io.quarkus.arc.InjectableContext, jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context

public class VaadinSessionScopedContext extends AbstractContext
Context for @VaadinSessionScoped beans.

Stores contextuals in VaadinSession. Other Vaadin CDI contexts are stored in the corresponding VaadinSessionScoped context.

Since:
1.0
  • Constructor Details

    • VaadinSessionScopedContext

      public VaadinSessionScopedContext()
  • 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:
      contextual - the contextual type
      createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.
      Returns:
      the underlying storage
    • getScope

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

      public boolean isActive()