Class UIScopedContext

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

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

    • UIScopedContext

      public UIScopedContext()
  • 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()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface io.quarkus.arc.InjectableContext
      Overrides:
      destroy in class AbstractContext
    • getState

      public io.quarkus.arc.InjectableContext.ContextState getState()
      Specified by:
      getState in interface io.quarkus.arc.InjectableContext
      Overrides:
      getState in class AbstractContext