java.lang.Object
io.quarkus.qute.trace.BaseEvent
io.quarkus.qute.trace.ResolveEvent
Represents an event fired during the resolution of a template node.
This event encapsulates information about the node currently being resolved, the resolution context, and the engine managing the rendering process.
It also holds the result of the resolution as a ResultNode and any
Throwable error that may have occurred during resolution. These
fields can be set by the code handling the event.
Used by trace listeners to monitor or inspect the evaluation of template nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionResolveEvent(TemplateNode templateNode, ResolutionContext context, Engine engine) Creates a newResolveEventfor the given template node, resolution context, and engine. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current resolution context.getError()Returns the error thrown during resolution, if any.Returns the result of resolving the template node.Returns the template node currently being resolved.voidresolve(ResultNode resultNode, Throwable error) Sets the result of resolving the template node along with any error.Methods inherited from class io.quarkus.qute.trace.BaseEvent
done, getEllapsedTime, getEngine
-
Constructor Details
-
ResolveEvent
Creates a newResolveEventfor the given template node, resolution context, and engine.- Parameters:
templateNode- the template node being resolvedcontext- the current resolution contextengine- the engine managing the rendering
-
-
Method Details
-
getTemplateNode
Returns the template node currently being resolved.- Returns:
- the template node
-
getContext
Returns the current resolution context.- Returns:
- the resolution context
-
getResultNode
Returns the result of resolving the template node.May be
nullif the resolution has not yet been performed or if an error occurred.- Returns:
- the result node or
null
-
getError
Returns the error thrown during resolution, if any.May be
nullif no error occurred.- Returns:
- the error or
null
-
resolve
Sets the result of resolving the template node along with any error.- Parameters:
resultNode- the resolved result, ornullif resolution failederror- the error thrown during resolution, ornullif none
-