Module io.quarkus.qute.debug
Package io.quarkus.qute.debug.client
Class EventBasedJavaSourceResolver
java.lang.Object
io.quarkus.qute.debug.client.EventBasedJavaSourceResolver
- All Implemented Interfaces:
JavaSourceResolver
JavaSourceResolver implementation for event-based clients (VS Code, etc.).
When the debugger needs to resolve a Qute template to a Java source, this resolver sends an event to the client and waits asynchronously for the client to respond.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOptionally handles a cancellation from the server side.voidHandles the response from the client when a Java source has been resolved.Resolves a Java source from a Qute template by sending an event to the client.
-
Constructor Details
-
EventBasedJavaSourceResolver
-
-
Method Details
-
resolveJavaSource
public CompletableFuture<JavaSourceLocationResponse> resolveJavaSource(JavaSourceLocationArguments args) Resolves a Java source from a Qute template by sending an event to the client.Returns a CompletableFuture that will be completed when the client responds via the
qute/onJavaSourceResolvednotification.- Specified by:
resolveJavaSourcein interfaceJavaSourceResolver- Parameters:
args- the arguments describing the Java element to resolve- Returns:
- a future completing with the resolved Java source location
-
handleResponse
Handles the response from the client when a Java source has been resolved.This should be called by the client event handler when it receives the
qute/onJavaSourceResolvednotification. -
cancel
Optionally handles a cancellation from the server side.
-