io.honeybadger.com.github.mustachejava.reflect.SimpleObjectHandler Maven / Gradle / Ivy
package com.github.mustachejava.reflect;
import com.github.mustachejava.*;
import com.github.mustachejava.util.Wrapper;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class SimpleObjectHandler extends BaseObjectHandler {
@Override
public Binding createBinding(final String name, TemplateContext tc, Code code) {
return new Binding() {
// We find the wrapper just once since only the name is needed
private Wrapper wrapper = find(name, null);
@Override
public Object get(List