/** * Get a field set joinpoint * * @param object the object to configure * @param jpf the join point factory * @param name the name of the field * @param value the value * @return the Joinpoint * @throws Throwable for any error */ public static FieldSetJoinpoint getFieldSetJoinpoint(Object object, JoinpointFactory jpf, String name, Object value) throws Throwable { boolean trace = log.isTraceEnabled(); if (trace) log.trace("Get field set Joinpoint jpf=" + jpf + " target=" + object + " name=" + name + " value=" + value); FieldInfo fieldInfo = findFieldInfo(jpf.getClassInfo(), name); FieldSetJoinpoint joinpoint = jpf.getFieldSetJoinpoint(fieldInfo); joinpoint.setTarget(object); joinpoint.setValue(value); return joinpoint; }
/** * Get a field set joinpoint * * @param object the object to configure * @param jpf the join point factory * @param name the name of the field * @param value the value * @return the Joinpoint * @throws Throwable for any error */ public static FieldSetJoinpoint getFieldSetJoinpoint(Object object, JoinpointFactory jpf, String name, Object value) throws Throwable { boolean trace = log.isTraceEnabled(); if (trace) log.trace("Get field set Joinpoint jpf=" + jpf + " target=" + object + " name=" + name + " value=" + value); FieldInfo fieldInfo = findFieldInfo(jpf.getClassInfo(), name); FieldSetJoinpoint joinpoint = jpf.getFieldSetJoinpoint(fieldInfo); joinpoint.setTarget(object); joinpoint.setValue(value); return joinpoint; }