Results 1 to 2 of 2

Thread: Spring AOP/AspectJ + Spring security

  1. #1
    Join Date
    Jun 2008
    Posts
    8

    Question 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

  2. #2
    Join Date
    Oct 2012
    Location
    Shenzhen, China
    Posts
    13

    Default

    Pls show us the code of PermissionEvaluator.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •