Hello all. I'm having problems defining a pointcut so I can access the target object:
Application Context
PointcutCode:<aop:aspectj-autoproxy/> <bean id="logging" class="blah.Logging" />
AdviceCode:@Pointcut( "execution( * blah.AddressService.getAddress(..) )" ) public void getAddress() {}
When I try and deploy it I get:Code:@Before( "blah.SystemArchitecture.getAddress() && args( id ) && target( addressService )" ) public void logGetAddress( Long id, AddressService addressService ) { ... }
I'm probably doing something stupid so if anyone can point me in the right direction I'd be very greatful!Code:org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscoverer$AmbiguousBindingException: Still 2 unbound args at this(),target(),args() binding stage, with no way to determine between them


Reply With Quote