add TemplateFunction java interface

needed as a java interface due to clojure not allowing for vararg
parameters in definterface/defprotocol
This commit is contained in:
Gered 2014-06-15 13:36:13 -04:00
parent 0891fa5675
commit d3eb6e844c

View file

@ -0,0 +1,10 @@
package clj_jtwig;
import com.lyncode.jtwig.functions.exceptions.FunctionException;
// this is defined in Java only because Clojure defprotocol/definterface don't allow
// including method definitions with vararg parameters
public interface TemplateFunction {
public abstract Object execute (Object... arguments) throws FunctionException;
}