All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine Maven / Gradle / Ivy

package io.vertx.mutiny.ext.web.templ.pebble;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import com.mitchellbosecke.pebble.PebbleEngine;

/**
 * A template engine that uses the Pebble library.
 * The {@link io.vertx.mutiny.ext.web.common.template.TemplateEngine#unwrap} shall return an object of class 
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.templ.pebble.PebbleTemplateEngine original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.class) public class PebbleTemplateEngine extends io.vertx.mutiny.ext.web.common.template.TemplateEngine { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new PebbleTemplateEngine((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine) obj), PebbleTemplateEngine::getDelegate ); private final io.vertx.ext.web.templ.pebble.PebbleTemplateEngine delegate; public PebbleTemplateEngine(io.vertx.ext.web.templ.pebble.PebbleTemplateEngine delegate) { super(delegate); this.delegate = delegate; } public PebbleTemplateEngine(Object delegate) { super((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)delegate); this.delegate = (io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ PebbleTemplateEngine() { super(null); this.delegate = null; } public io.vertx.ext.web.templ.pebble.PebbleTemplateEngine getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PebbleTemplateEngine that = (PebbleTemplateEngine) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param vertx * @return the engine */ public static io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine create(io.vertx.mutiny.core.Vertx vertx) { io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine ret = io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine.newInstance((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.create(vertx.getDelegate())); return ret; } /** * @param vertx * @param extension * @return the engine */ public static io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine create(io.vertx.mutiny.core.Vertx vertx, String extension) { io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine ret = io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine.newInstance((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.create(vertx.getDelegate(), extension)); return ret; } /** * @param vertx * @param engine * @return the engine */ public static io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine create(io.vertx.mutiny.core.Vertx vertx, com.mitchellbosecke.pebble.PebbleEngine engine) { io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine ret = io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine.newInstance((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.create(vertx.getDelegate(), engine)); return ret; } /** * @param vertx * @param extension * @param engine * @return the engine */ public static io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine create(io.vertx.mutiny.core.Vertx vertx, String extension, com.mitchellbosecke.pebble.PebbleEngine engine) { io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine ret = io.vertx.mutiny.ext.web.templ.pebble.PebbleTemplateEngine.newInstance((io.vertx.ext.web.templ.pebble.PebbleTemplateEngine)io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.create(vertx.getDelegate(), extension, engine)); return ret; } /** * Default template extension */ public static final String DEFAULT_TEMPLATE_EXTENSION = io.vertx.ext.web.templ.pebble.PebbleTemplateEngine.DEFAULT_TEMPLATE_EXTENSION; public static PebbleTemplateEngine newInstance(io.vertx.ext.web.templ.pebble.PebbleTemplateEngine arg) { return arg != null ? new PebbleTemplateEngine(arg) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy