Spring AOP/AspectJ + Spring security
Hi,
my app uses spring security to have pre and post filters in some business objects.
We use a custom PermissionEvaluator, that needs a FooBean to be injected by spring.
We also use spring aop to do some work. But our FooBean does not get weaved by spring aop,
and we can't use it in our custom PermissionEvaluator.
Why the FooBean doesnt get weaved when inject in PermissionEvaluator?
app ctx with aop config:
Code:
<aop:aspectj-autoproxy proxy-target-class="true" />
<aop:config proxy-target-class="true" />
<tx:annotation-driven transaction-manager="transactionManager" mode="aspectj" />
<context:component-scan base-package="foo.bar" />
<context:annotation-config />
<bean class="org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator" />
thanks in advance,
andre