Package io.ryos.rhino.sdk.dsl
Interface SessionDsl
-
- All Superinterfaces:
DslItem
,MaterializableDsl
- All Known Subinterfaces:
DslBuilder
- All Known Implementing Classes:
DslBuilderImpl
public interface SessionDsl extends DslItem
Session DSL is used to store object in the define.- Author:
- Erhan Bagdemir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DslBuilder
session(java.lang.String sessionKey, java.lang.Object object)
Session DSL is used to save objects to the current define.DslBuilder
session(java.lang.String sessionKey, java.util.function.Supplier<java.lang.Object> objectSupplier)
Session DSL is used to save objects to the current define which are provided by the object supplier.-
Methods inherited from interface io.ryos.rhino.sdk.dsl.DslItem
getChildren, getName, getParent, getParentName, hasParent, setName, setParent
-
Methods inherited from interface io.ryos.rhino.sdk.dsl.MaterializableDsl
materializer
-
-
-
-
Method Detail
-
session
DslBuilder session(java.lang.String sessionKey, java.util.function.Supplier<java.lang.Object> objectSupplier)
Session DSL is used to save objects to the current define which are provided by the object supplier.- Parameters:
sessionKey
- Session key.objectSupplier
- Object provider.- Returns:
- Runnable DSL instance.
-
session
DslBuilder session(java.lang.String sessionKey, java.lang.Object object)
Session DSL is used to save objects to the current define.- Parameters:
object
- Object instance to store in the define.- Returns:
DslBuilder
instance.
-
-