Package io.deephaven.appmode
Class ApplicationContext
java.lang.Object
io.deephaven.appmode.ApplicationContext
This application context can be used to get access to the application state from within script applications.
get()
is only valid during the initial invocation of a script application during start up of
Application Mode. Scripts may dynamically add fields after start up by capturing and using the ApplicationState after
the script after having returned execution control to the begin the server process.
Each application owns and manages a unique ApplicationState.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationState
get()
static void
initialize
(Consumer<ApplicationState> initializer) static void
runUnderContext
(ApplicationState context, Runnable runner)
-
Constructor Details
-
ApplicationContext
public ApplicationContext()
-
-
Method Details
-
get
-
initialize
-
runUnderContext
-