|
|
quot;Failed to bind all argument namesquot; Error
pany.esm.eputil.core.ActivityIfc.*(..))quot; /gt;
lt;aop:aspect id=quot;aroundExamplequot; ref=quot;TimerAspectquot;gt;
lt;aop:around pointcut-ref=quot;activtyExecutionquot; method=quot;doBasicProfilingquot; /gt;
lt;/aop:aspectgt;
lt;/aop:configgt;
lt;bean id=quot;TimerAspectquot; class=quot;com.company.esm.eputil.aop.TimerAspectquot; /gt;
Code:
public class TimerAspect {
private Log log = LogFactory.getLog(TimerAspect.class);
//@Around(quot;com.company.esm.eputil.aop.SystemArchitecture.timingOperation()quot;) public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable { log.info(quot;Start: quot; + new Date()); Object retVal = pjp.proceed(); log.info(quot;End: quot; + new Date()); return retVal; }
}
Any help would be appreciated.
pany.esm.eputil.core.ActivityIfc.*(com.company.esm.eputil.core.ActivityProcessorIfc))quot; /gt; lt;aop:after method=quot;doBasicProfilingEndquot; pointcut=quot;execution(* com.company.esm.eputil.core.ActivityIfc.*(com.company.esm.eputil.core.ActivityProcessorIfc))quot; /gt; lt;/aop:aspectgt; lt;/aop:configgt;
lt;bean id=quot;TimerAspectquot; class=quot;com.company.esm.eputil.aop.TimerAspectquot; /gt;Add argNames annotation parameter?
Originally Posted by plethoraAdd argNames annotation parameter?
With what value? The JoinPoint should be supplied by Spring automatically.
I was thinking that spring perhaps wanted a quot;arg-namesquot; attribute that specified the name of the quot;JoinPointquot;/quot roceedingJoinPointquot; parameter. However, it seems not to be the case.
Can you provide some more details on your environment? Versions of Java, Spring, and the version of the AspectJ libraries used?
Originally Posted by plethoraCan you provide some more details on your environment? Versions of Java, Spring, and the version of the AspectJ libraries used?
That was it...old aspectj versions. Thanks. |
|