* 这是最后的大招了,查一下形参的名字,作为@Param("形参名")进行处理
*/
protected ParamInjector paramNameInject(Method method, int index) {
List<String> names = MethodParamNamesScaner.getParamNames(method);
if (names != null)
return new NameInjector(names.get(index), method.getParameterTypes()[index], null);
else if (log.isInfoEnabled())
log.info("Complie without debug info? can't deduce param name. fail back to PathArgInjector!! index="
+ index);
return new PathArgInjector(method.getParameterTypes()[index]);
}