Package io.quarkus.qute.runtime
Class QuteRuntimeConfig
- java.lang.Object
-
- io.quarkus.qute.runtime.QuteRuntimeConfig
-
@ConfigRoot(name="qute", phase=RUN_TIME) public class QuteRuntimeConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuteRuntimeConfig.PropertyNotFoundStrategy
-
Field Summary
Fields Modifier and Type Field Description Optional<QuteRuntimeConfig.PropertyNotFoundStrategy>
propertyNotFoundStrategy
The strategy used when a standalone expression evaluates to a "not found" value at runtime and theio.quarkus.qute.strict-rendering
config property is set tofalse
boolean
removeStandaloneLines
Specify whether the parser should remove standalone lines from the output.boolean
strictRendering
If set totrue
then any expression that is evaluated to aResults.NotFound
value will always result in aTemplateException
and the rendering is aborted.long
timeout
The global rendering timeout in milliseconds.boolean
useAsyncTimeout
If set totrue
then the timeout should also be used for asynchronous rendering methods, such asTemplateInstance.createUni()
andTemplateInstance.renderAsync()
.
-
Constructor Summary
Constructors Constructor Description QuteRuntimeConfig()
-
-
-
Field Detail
-
propertyNotFoundStrategy
@ConfigItem public Optional<QuteRuntimeConfig.PropertyNotFoundStrategy> propertyNotFoundStrategy
The strategy used when a standalone expression evaluates to a "not found" value at runtime and theio.quarkus.qute.strict-rendering
config property is set tofalse
This strategy is never used when evaluating section parameters, e.g.
{#if foo.name}
. In such case, it's the responsibility of the section to handle this situation appropriately.By default, the
NOT_FOUND
constant is written to the output. However, in the development mode theQuteRuntimeConfig.PropertyNotFoundStrategy.THROW_EXCEPTION
is used by default, i.e. when the strategy is not specified.
-
removeStandaloneLines
@ConfigItem(defaultValue="true") public boolean removeStandaloneLines
Specify whether the parser should remove standalone lines from the output. A standalone line is a line that contains at least one section tag, parameter declaration, or comment but no expression and no non-whitespace character.
-
strictRendering
@ConfigItem(defaultValue="true") public boolean strictRendering
If set totrue
then any expression that is evaluated to aResults.NotFound
value will always result in aTemplateException
and the rendering is aborted.Note that the
quarkus.qute.property-not-found-strategy
config property is completely ignored if strict rendering is enabled.
-
timeout
@ConfigItem(defaultValue="10000") public long timeout
The global rendering timeout in milliseconds. It is used if notimeout
template instance attribute is set.
-
useAsyncTimeout
@ConfigItem(defaultValue="true") public boolean useAsyncTimeout
If set totrue
then the timeout should also be used for asynchronous rendering methods, such asTemplateInstance.createUni()
andTemplateInstance.renderAsync()
.
-
-