private void addContextMethod(Class<?> contextClass, Method m, Object provider) { if (contextMethods == null) { contextMethods = new HashMap<>(); } addToMap(contextMethods, contextClass, m); if (!InjectionUtils.VALUE_CONTEXTS.contains(m.getParameterTypes()[0].getName())) { addToMap(getSetterProxyMap(true), m, getMethodThreadLocalProxy(m, provider)); } }
private void addContextMethod(Class<?> contextClass, Method m, Object provider) { if (contextMethods == null) { contextMethods = new HashMap<Class<?>, Map<Class<?>, Method>>(); } addToMap(contextMethods, contextClass, m); if (m.getParameterTypes()[0] != Application.class) { addToMap(getSetterProxyMap(), m, getMethodThreadLocalProxy(m, provider)); } }