public static Method setterMethod ( Class < ? > target , Class < ? > componentClass ) { try { return target . getMethod ( setterName ( componentClass ) , componentClass ) ; } catch ( NoSuchMethodException e ) { //if (log.isTraceEnabled()) log.trace("Unable to find method " + setterName(componentClass) + " in class " + target); return null ; } catch ( NullPointerException e ) { return null ; } }
Returns a Method object corresponding to a setter that sets an instance of componentClass from target .