com.hubspot.jinjava.el.NoInvokeELContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinjava Show documentation
Show all versions of jinjava Show documentation
Jinja templating engine implemented in Java
The newest version!
package com.hubspot.jinjava.el;
import javax.el.ELContext;
import javax.el.ELResolver;
import javax.el.FunctionMapper;
import javax.el.VariableMapper;
public class NoInvokeELContext extends ELContext {
private ELContext delegate;
private NoInvokeELResolver elResolver;
public NoInvokeELContext(ELContext delegate) {
this.delegate = delegate;
}
@Override
public ELResolver getELResolver() {
if (elResolver == null) {
elResolver = new NoInvokeELResolver(delegate.getELResolver());
}
return elResolver;
}
@Override
public FunctionMapper getFunctionMapper() {
return delegate.getFunctionMapper();
}
@Override
public VariableMapper getVariableMapper() {
return delegate.getVariableMapper();
}
}