Не совсем уверен в этом, но, возможно, вам нужно использовать управляемый пружиной TestableBean, чтобы Spring AOP принимал вызов метода.
edit: конечно, вы не можете использовать @Around
как вы указали - но этот вопрос был рассмотрен в другом ответе, поэтому здесь он опущен.
edit2: Если вам нужна помощь в получении пружинного боба, пожалуйста, не стесняйтесь спрашивать.но так как вы уже настроили свой аспектный компонент, я думаю, вы справитесь с этим:)
edit3: Хе-хе.Хорошо, а может и нет:)
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
загрузит контекст вашего приложения.Загрузите бины оттуда, вызвав:
TestableBean testableBean = (TestableBean )ctx.getBean("testableBean ");
Определите TestableBean
так же, как вы делали это с вашим компонентом Aspect.
edit4: Теперь я почти уверен, что ошибка неВесенний управляемый боб
Use the simplest thing that can work. Spring AOP is simpler than using full AspectJ as there is no requirement to introduce the AspectJ compiler / weaver into your development and build processes. If you only need to advise the execution of operations on Spring beans, then Spring AOP is the right choice. If you need to advise domain objects, or any other object not managed by the Spring container, then you will need to use AspectJ.
Взято из: http://static.springsource.org/spring/docs/2.0.x/reference/aop.html