Interface DataContextHolder<T>


public interface DataContextHolder<T>
Stores objects in context.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get object from context.
    default org.springframework.security.oauth2.jwt.Jwt
    Get principal from context.
    default void
    set(T object)
    Save object in context.
  • Method Details

    • set

      default void set(T object)
      Save object in context.
      Parameters:
      object - this object to save.
    • get

      Optional<T> get()
      Get object from context.
      Returns:
      optional with object from context or empty optional.
    • getPrincipal

      default org.springframework.security.oauth2.jwt.Jwt getPrincipal()
      Get principal from context.
      Returns:
      principal.