Re: [aspectj-users] UnsupportedPointcutPrimitiveException

2016-09-20 Thread Mohan Radhakrishnan
Yes. Spring AOP doesn't work. This works. public class AspectJConfig { @Bean public CourseServiceMock CourseServiceAspect() { CourseServiceMock aspect = Aspects.aspectOf(CourseServiceMock.class); return aspect; } } Thanks, Mohan On 20 September 2016 at 01:40, Andy Clement wrote: >

Re: [aspectj-users] UnsupportedPointcutPrimitiveException

2016-09-19 Thread Andy Clement
I don’t honestly know about Spring AOP and using if() like that. From the documentation: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/aop.html#aop-pointcuts-designators

[aspectj-users] UnsupportedPointcutPrimitiveException

2016-09-19 Thread Mohan Radhakrishnan
Hi, This should be supported. Isn't it. I use Spring Tool Suite and @EnableAspectJAutoProxy Thanks, Mohan @Pointcut("execution(* com.pearson.nextgen.enterprise.service.CourseService. getCoursesByInstitutionId(String)) && if()") public static boolean courseSearch() { return Bo