private Method getBridgedWriteMethod() { try { return BridgedMethodFinder.findMethod(getWriteMethod(), clazz); } catch (Exception ignore) { } return null; }
public Class<?> getWriteMethodPropertyType() { try { return getWriteMethod().getParameterTypes()[0]; } catch (Exception e) { MappingUtils.throwMappingException(e); return null; } }
private Method getBridgedWriteMethod() { try { return BridgedMethodFinder.findMethod(getWriteMethod(), clazz); } catch (Exception ignore) { } return null; }
private Method getBridgedWriteMethod() { try { return BridgedMethodFinder.findMethod(getWriteMethod(), clazz); } catch (Exception ignore) { } return null; }
public Class<?> genericType() { Class<?> genericType = null; try { Method method = getWriteMethod(); genericType = ReflectionUtils.determineGenericsType(method, false); } catch (NoSuchMethodException e) { log.warn("The destination object: {} does not have a write method for property : {}", e); } return genericType; }
public Class<?> genericType() { Class<?> genericType = null; try { Method method = getWriteMethod(); genericType = ReflectionUtils.determineGenericsType(clazz, method, false); } catch (NoSuchMethodException e) { log.warn("The destination object: {} does not have a write method for property : {}", e); } return genericType; }
public Class<?> genericType() { Class<?> genericType = null; try { Method method = getWriteMethod(); genericType = ReflectionUtils.determineGenericsType(method, false); } catch (NoSuchMethodException e) { log.warn("The destination object: {} does not have a write method for property : {}", e); } return genericType; }
protected void invokeWriteMethod(Object target, Object value) { try { ReflectionUtils.invoke(getWriteMethod(), target, new Object[] { value }); } catch (NoSuchMethodException e) { MappingUtils.throwMappingException(e); } }
protected void invokeWriteMethod(Object target, Object value) { try { ReflectionUtils.invoke(getWriteMethod(), target, new Object[] { value }); } catch (NoSuchMethodException e) { MappingUtils.throwMappingException(e); } }
protected void invokeWriteMethod(Object target, Object value) { try { ReflectionUtils.invoke(getWriteMethod(), target, new Object[]{value}); } catch (NoSuchMethodException e) { MappingUtils.throwMappingException(e); } }
/** * @deprecated As of 3.2 release */ @Deprecated public Method getDestFieldWriteMethod(Class<?> runtimeDestClass) { // 4-07 mht: The getWriteMethod was removed from the prop descriptor // interface. This was done as part of // refactoring effort to clean up the prop descriptor stuff. The // underlying write method should not be exposed. // For now, just explicitly cast to the only prop // descriptor(getter/setter) that could have been used in this // context. The other types of prop descriptors would have failed. DozerPropertyDescriptor dpd = getDestPropertyDescriptor(runtimeDestClass); Method result = null; try { result = ((GetterSetterPropertyDescriptor) dpd).getWriteMethod(); } catch (Exception e) { MappingUtils.throwMappingException(e); } return result; }
/** * @deprecated As of 3.2 release */ @Deprecated public Method getDestFieldWriteMethod(Class<?> runtimeDestClass) { // 4-07 mht: The getWriteMethod was removed from the prop descriptor // interface. This was done as part of // refactoring effort to clean up the prop descriptor stuff. The // underlying write method should not be exposed. // For now, just explicitly cast to the only prop // descriptor(getter/setter) that could have been used in this // context. The other types of prop descriptors would have failed. DozerPropertyDescriptor dpd = getDestPropertyDescriptor(runtimeDestClass); Method result = null; try { result = ((GetterSetterPropertyDescriptor) dpd).getWriteMethod(); } catch (Exception e) { MappingUtils.throwMappingException(e); } return result; }