forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev UI fix error in log on Hot Reload when properties change
Signed-off-by: Phillip Kruger <[email protected]>
- Loading branch information
1 parent
9aaa021
commit bb026b7
Showing
9 changed files
with
89 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...sions/vertx-http/runtime/src/main/java/io/quarkus/devui/runtime/comms/JsonRpcMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.quarkus.devui.runtime.comms; | ||
|
||
/** | ||
* Allows JSON RPC methods to response with more finer grade message types | ||
* | ||
* @param <T> The type of the response object | ||
*/ | ||
public class JsonRpcMessage<T> { | ||
private T response; | ||
private MessageType messageType; | ||
|
||
public JsonRpcMessage() { | ||
} | ||
|
||
public JsonRpcMessage(T response, MessageType messageType) { | ||
this.response = response; | ||
this.messageType = messageType; | ||
} | ||
|
||
public T getResponse() { | ||
return response; | ||
} | ||
|
||
public void setResponse(T response) { | ||
this.response = response; | ||
} | ||
|
||
public MessageType getMessageType() { | ||
return messageType; | ||
} | ||
|
||
public void setMessageType(MessageType messageType) { | ||
this.messageType = messageType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
extensions/vertx-http/runtime/src/main/java/io/quarkus/devui/runtime/comms/MessageType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.quarkus.devui.runtime.comms; | ||
|
||
public enum MessageType { | ||
Void, | ||
Response, | ||
SubscriptionMessage, | ||
HotReload | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters