2122232425262728
@Override public Object invoke(Object obj) throws BeanMappingException { try { return (method == null ? null : method.invoke(obj, (Object[]) null)); } catch (Exception e) { throw new BeanMappingException(e); } }
134135136137138139140141142143144
try { field = clazz.getDeclaredField(fieldName); } catch (NoSuchFieldException e) { // ignore } catch (Exception e) { throw new BeanMappingException(e); } if (field != null) { fieldCache.put(fieldName, field); } }
2627282930313233
@Override public Object invoke(Object obj) throws BeanMappingException { try { return field.get(obj); } catch (Exception e) { throw new BeanMappingException("field invoke error!", e); } }