Annotation Interface EngineConfiguration


@Target(TYPE) @Retention(RUNTIME) public @interface EngineConfiguration

IMPORTANT: This annotation only works in a fully integrated environment; such as a Quarkus application.

Enables registration of additional components to the preconfigured Engine.

A non-abstract, top-level or static nested class that implements one of the supported component interfaces and is annotated with this annotation:

  • can be used during validation of templates at build time,
  • is automatically registered at runtime (a) to the preconfigured Engine and (b) as a CDI bean.
The list of supported component interfaces includes: SectionHelperFactory, ValueResolver, NamespaceResolver and ParserHook.

An annotated class that implements SectionHelperFactory or ParserHook must be public and declare a no-args constructor that is used to instantiate the component at build time. At runtime, a CDI bean instance is used. This means that the factory can declare injection points. However, these injection points are only injected at runtime. If no CDI scope is defined then javax.enterprise.context.Dependent is used.

See Also: