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 top-level or static nested class that implements one of the supported component interface 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 and NamespaceResolver.

An annotated class that implements SectionHelperFactory must 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 define injection points. If no CDI scope is defined then javax.enterprise.context.Dependent is used.

See Also: