com.holonplatform.vaadin.flow

## Interface VaadinSessionScope

- All Superinterfaces:
    com.holonplatform.core.ContextScope
  All Known Implementing Classes:
    DefaultVaadinSessionScope

      public interface VaadinSessionScope
      extends com.holonplatform.core.ContextScope

  A `ContextScope` bound to current `VaadinSession`, looking up context resources using Vaadin Session attributes.

  This scope uses `VaadinSession.getCurrent()` to obtain the current Vaadin session.

  Since:
    5.2.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `NAME` Scope name

  - ### Method Summary

    All Methods Static Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<com.holonplatform.core.ContextScope>` | `get()` Get the Vaadin Session scope from current context.
    `static com.holonplatform.core.ContextScope` | `require()` Get the Vaadin Session scope from current context.

    - ### Methods inherited from interface com.holonplatform.core.ContextScope

      `get, getName, getOrder, put, putIfAbsent, remove`

- - ### Field Detail

    - #### NAME

          static final String NAME

      Scope name
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### get

          static Optional<com.holonplatform.core.ContextScope> get()

      Get the Vaadin Session scope from current context.
      Returns:
        The Vaadin Session scope, if available.

    - #### require

          static com.holonplatform.core.ContextScope require()

      Get the Vaadin Session scope from current context.
      Returns:
        The Vaadin Session scope
      Throws:
        `IllegalStateException` - If the Vaadin Session scope is not available

Copyright © 2020 The Holon Platform. All rights reserved.