Class PebbleEngineFactory

java.lang.Object
io.micronaut.views.pebble.PebbleEngineFactory

@Factory public class PebbleEngineFactory extends Object
Factory for PebbleEngine beans.
Since:
2.2.0
Author:
Ecmel Ercan
  • Constructor Details

    • PebbleEngineFactory

      public PebbleEngineFactory(ViewsConfiguration viewsConfiguration, PebbleConfiguration configuration, Optional<io.pebbletemplates.pebble.loader.Loader<?>> loader, Optional<io.pebbletemplates.pebble.lexer.Syntax> syntax, Optional<io.pebbletemplates.pebble.attributes.methodaccess.MethodAccessValidator> methodAccessValidator, List<io.pebbletemplates.pebble.extension.Extension> extensions)
    • PebbleEngineFactory

      @Inject public PebbleEngineFactory(ViewsConfiguration viewsConfiguration, PebbleConfiguration configuration, Optional<io.pebbletemplates.pebble.loader.Loader<?>> loader, Optional<io.pebbletemplates.pebble.lexer.Syntax> syntax, Optional<io.pebbletemplates.pebble.attributes.methodaccess.MethodAccessValidator> methodAccessValidator, List<io.pebbletemplates.pebble.extension.Extension> extensions, @Named("io") ExecutorService executorService)
  • Method Details

    • create

      @Singleton public io.pebbletemplates.pebble.PebbleEngine create()
      Returns:
      The Pebble Engine