Class VaadinServiceScopedContext

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

public class VaadinServiceScopedContext extends AbstractContext
Context for @VaadinServiceScoped beans.
  • Constructor Details

    • VaadinServiceScopedContext

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

    • init

      public void init(jakarta.enterprise.inject.spi.BeanManager beanManager)
    • 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
    • getScope

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

      public boolean isActive()