Package io.quarkus.dev.console
Class DevConsoleManager
java.lang.Object
io.quarkus.dev.console.DevConsoleManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()static <T> TGets a shared globalstatic HotReplacementContextstatic Objectstatic <T> TInvokes a registered actionstatic <T> TInvokes a registered actionstatic booleanstatic <T> voidRegisters an action that will be called by a JSON RPC service at runtimestatic voidregisterHandler(Consumer<DevConsoleRequest> requestHandler) static voidsentRequest(DevConsoleRequest request) static voidsetDoingHttpInitiatedReload(boolean doingHttpInitiatedReload) static voidSets a global that is shared between both the runtime and deployment partsstatic voidsetHotReplacementContext(HotReplacementContext hotReplacementContext) static voidstatic void
-
Constructor Details
-
DevConsoleManager
public DevConsoleManager()
-
-
Method Details
-
registerHandler
-
sentRequest
-
getTemplateInfo
-
setTemplateInfo
-
getHotReplacementContext
-
setHotReplacementContext
-
setQuarkusBootstrap
-
getQuarkusBootstrap
-
setGlobal
Sets a global that is shared between both the runtime and deployment parts- Parameters:
name- A namespaced keyvalue- A value
-
getGlobal
Gets a shared global- Parameters:
name- The key- Returns:
- The value
-
isDoingHttpInitiatedReload
public static boolean isDoingHttpInitiatedReload() -
setDoingHttpInitiatedReload
public static void setDoingHttpInitiatedReload(boolean doingHttpInitiatedReload) -
close
public static void close() -
register
Registers an action that will be called by a JSON RPC service at runtime- Parameters:
name- the name of the action, should be namespaced to avoid conflictsaction- the action. The function receives a Map as parameters (named parameters) and returns an object of typeT. Note that the typeTmust be a class shared by both the deployment and the runtime.
-
invoke
Invokes a registered action- Parameters:
name- the name of the action- Returns:
- the result of the invocation. An empty map is returned for action not returning any result.
-
invoke
Invokes a registered action- Parameters:
name- the name of the actionparams- the named parameters- Returns:
- the result of the invocation. An empty map is returned for action not returning any result.
-