JtlAutoConfiguration class final

Auto-configuration class for JTL template infrastructure in Jetleaf.

This configuration provides default pods for template rendering, including:

  • Template cache
  • Asset builder
  • Template filter registry
  • Expression evaluator
  • Variable resolver
  • Template renderer
  • Core JTL engine instance

All pods are marked with @Role(DesignRole.INFRASTRUCTURE) and support conditional registration via @ConditionalOnMissingPod, allowing developers to override defaults with custom implementations.

pods registered here correspond to the following pod names:

  • JTL_TEMPLATE_CACHE_POD_NAME
  • JTL_ASSET_BUILDER_POD_NAME
  • JTL_TEMPLATE_FILTER_REGISTRY_POD_NAME
  • JTL_TEMPLATE_EXPRESSION_EVALUATOR_POD_NAME
  • JTL_TEMPLATE_VARIABLE_RESOLVER_POD_NAME
  • JTL_TEMPLATE_RENDERER_POD_NAME
  • JTL_POD_NAME
Annotations
  • @Named.new(JtlAutoConfiguration.NAME)
  • @AutoConfiguration.new()
  • @Role.new(DesignRole.INFRASTRUCTURE)

Constructors

JtlAutoConfiguration()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

jtl(TemplateCache templateCache, AssetBuilder assetBuilder, TemplateFilterRegistry filterRegistry, TemplateExpressionEvaluator expressionEvaluator, TemplateVariableResolver variableResolver, TemplateRenderer templateRenderer) → Jtl
Provides the core JTL engine instance.
jtlAssetBuilder() → AssetBuilder
Provides the asset builder for resolving template assets.
jtlFilterRegistry() → TemplateFilterRegistry
Provides a registry for template filters.
jtlTemplateCache() → TemplateCache
Provides the template cache for storing compiled templates.
jtlTemplateExpressionEvaluator() → TemplateExpressionEvaluator
Provides the default template expression evaluator.
jtlTemplateRenderer(AssetBuilder assetBuilder, TemplateFilterRegistry filterRegistry) → TemplateRenderer
Provides the default template renderer.
jtlTemplateVariableResolver() → TemplateVariableResolver
Provides the default template variable resolver.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

JTL_ASSET_BUILDER_POD_NAME → const String
Pod name for the JTL asset builder.
JTL_POD_NAME → const String
Pod name for the JTL template engine factory.
JTL_TEMPLATE_CACHE_POD_NAME → const String
Pod name for the JTL template cache.
JTL_TEMPLATE_EXPRESSION_EVALUATOR_POD_NAME → const String
Pod name for the JTL template expression evaluator.
JTL_TEMPLATE_FILTER_REGISTRY_POD_NAME → const String
Pod name for the JTL template filter registry.
JTL_TEMPLATE_RENDERER_POD_NAME → const String
Pod name for the JTL template renderer.
JTL_TEMPLATE_VARIABLE_RESOLVER_POD_NAME → const String
Pod name for the JTL template variable resolver.
NAME → const String
Class name pod for this configuration.