Interface SessionDsl

  • All Superinterfaces:
    DslItem, MaterializableDsl
    All Known Subinterfaces:
    LoadDsl
    All Known Implementing Classes:
    LoadDslImpl

    public interface SessionDsl
    extends DslItem
    Session DSL is used to store object in the session.
    Author:
    Erhan Bagdemir
    • Method Detail

      • session

        LoadDsl session​(java.lang.String sessionKey,
                        java.util.function.Supplier<java.lang.Object> objectSupplier)
        Session DSL is used to save objects to the current session which are provided by the object supplier.
        Parameters:
        sessionKey - Session key.
        objectSupplier - Object provider.
        Returns:
        Runnable DSL instance.
      • session

        LoadDsl session​(java.lang.String sessionKey,
                        java.lang.Object object)
        Session DSL is used to save objects to the current session.
        Parameters:
        object - Object instance to store in the session.
        Returns:
        LoadDsl instance.