Package io.quarkus.dev.console
Class DevConsoleManager
- java.lang.Object
-
- io.quarkus.dev.console.DevConsoleManager
-
public class DevConsoleManager extends Object
-
-
Constructor Summary
Constructors Constructor Description DevConsoleManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose()static <T> TgetGlobal(String name)Gets a shared globalstatic HotReplacementContextgetHotReplacementContext()static ObjectgetQuarkusBootstrap()static Map<String,Map<String,Object>>getTemplateInfo()static <T> Tinvoke(String name, Map<String,String> params)Invokes a registered actionstatic booleanisDoingHttpInitiatedReload()static <T> voidregister(String name, Function<Map<String,String>,T> action)Registers 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 voidsetGlobal(String name, Object value)Sets a global that is shared between both the runtime and deployment partsstatic voidsetHotReplacementContext(HotReplacementContext hotReplacementContext)static voidsetQuarkusBootstrap(Object qb)static voidsetTemplateInfo(Map<String,Map<String,Object>> templateInfo)
-
-
-
Method Detail
-
registerHandler
public static void registerHandler(Consumer<DevConsoleRequest> requestHandler)
-
sentRequest
public static void sentRequest(DevConsoleRequest request)
-
getHotReplacementContext
public static HotReplacementContext getHotReplacementContext()
-
setHotReplacementContext
public static void setHotReplacementContext(HotReplacementContext hotReplacementContext)
-
setQuarkusBootstrap
public static void setQuarkusBootstrap(Object qb)
-
getQuarkusBootstrap
public static Object getQuarkusBootstrap()
-
setGlobal
public static void setGlobal(String name, Object value)
Sets a global that is shared between both the runtime and deployment parts- Parameters:
name- A namespaced keyvalue- A value
-
getGlobal
public static <T> T getGlobal(String name)
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
public static <T> void register(String name, Function<Map<String,String>,T> action)
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.
-
-