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

io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine Maven / Gradle / Ivy

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

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;

/**
 * A template engine that uses Jade.
 * 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.jade.JadeTemplateEngine original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.templ.jade.JadeTemplateEngine.class) public class JadeTemplateEngine 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 JadeTemplateEngine((io.vertx.ext.web.templ.jade.JadeTemplateEngine) obj), JadeTemplateEngine::getDelegate ); private final io.vertx.ext.web.templ.jade.JadeTemplateEngine delegate; public JadeTemplateEngine(io.vertx.ext.web.templ.jade.JadeTemplateEngine delegate) { super(delegate); this.delegate = delegate; } public JadeTemplateEngine(Object delegate) { super((io.vertx.ext.web.templ.jade.JadeTemplateEngine)delegate); this.delegate = (io.vertx.ext.web.templ.jade.JadeTemplateEngine)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ JadeTemplateEngine() { super(null); this.delegate = null; } public io.vertx.ext.web.templ.jade.JadeTemplateEngine 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; JadeTemplateEngine that = (JadeTemplateEngine) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param vertx * @return the engine * @deprecated */ @Deprecated public static io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine create(io.vertx.mutiny.core.Vertx vertx) { io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine ret = io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine.newInstance((io.vertx.ext.web.templ.jade.JadeTemplateEngine)io.vertx.ext.web.templ.jade.JadeTemplateEngine.create(vertx.getDelegate())); return ret; } /** * @param vertx * @param extension * @return the engine * @deprecated */ @Deprecated public static io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine create(io.vertx.mutiny.core.Vertx vertx, String extension) { io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine ret = io.vertx.mutiny.ext.web.templ.jade.JadeTemplateEngine.newInstance((io.vertx.ext.web.templ.jade.JadeTemplateEngine)io.vertx.ext.web.templ.jade.JadeTemplateEngine.create(vertx.getDelegate(), extension)); return ret; } /** * Default template extension */ public static final String DEFAULT_TEMPLATE_EXTENSION = io.vertx.ext.web.templ.jade.JadeTemplateEngine.DEFAULT_TEMPLATE_EXTENSION; public static JadeTemplateEngine newInstance(io.vertx.ext.web.templ.jade.JadeTemplateEngine arg) { return arg != null ? new JadeTemplateEngine(arg) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy