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