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

templates.java.hook.liquid Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
{%- if options.javaPackage != "" -%}
package {{options.javaPackage}};
{% endif %}

import ca.derekcormier.recipe.BaseIngredientHook;
import ca.derekcormier.recipe.Cake;

{% assign className = 'Abstract' | append: ingredient.name -%}
{%- assign className = className | append: 'Hook' -%}

{%- assign dataClassName = ingredient.name | append: 'Data' -%}

public abstract class {{className}} extends BaseIngredientHook<{{dataClassName}}> {
    public {{className}}() {
        super("{{ingredient.name}}", {{dataClassName}}.class);
    }

    public abstract void bake({{dataClassName}} data, Cake cake);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy