Package io.micronaut.views.pebble
Class PebbleEngineFactory
java.lang.Object
io.micronaut.views.pebble.PebbleEngineFactory
Factory for PebbleEngine beans.
- Since:
- 2.2.0
- Author:
- Ecmel Ercan
-
Constructor Summary
ConstructorDescriptionPebbleEngineFactory
(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
(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, ExecutorService executorService) -
Method Summary
-
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
-