if (!cri.isSingleton()) {
return;
}
for (Map.Entry<Class<?>, Method> entry : cri.getContextMethods().entrySet()) {
ThreadLocalProxy proxy = cri.getContextSetterProxy(entry.getValue());
InjectionUtils.injectThroughMethod(instance, entry.getValue(), proxy);
}
for (Field f : cri.getContextFields()) {
ThreadLocalProxy proxy = cri.getContextFieldProxy(f);
InjectionUtils.injectFieldValue(f, instance, proxy);
}
for (Field f : cri.getResourceFields()) {
ThreadLocalProxy proxy = cri.getResourceFieldProxy(f);
InjectionUtils.injectFieldValue(f, instance, proxy);
}
}