Interface ExtensionContext


@Role public interface ExtensionContext
Manipulate extension specific contextual informations.
Since:
12.10
Version:
$Id: abf16ebe8726a101329ee32b59ece6cdf4db24db $
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Decrement by 1 the session level and destroy the current session when reaching the first level.
    Increment by 1 the session level and create or return the session associated with the current thread.
  • Method Details

    • pushSession

      ExtensionSession pushSession()
      Increment by 1 the session level and create or return the session associated with the current thread.
      Returns:
      the current session
    • popSession

      void popSession()
      Decrement by 1 the session level and destroy the current session when reaching the first level.
    • getExtensionSession

      default Optional<ExtensionSession> getExtensionSession()
      Returns:
      the current ExtensionSession
      Since:
      14.7RC1, 14.4.4, 13.10.9