Results 1 to 2 of 2

Thread: How do I control ordering (precedence) of AspectJ caching?

Hybrid View

  1. #1

    Question How do I control ordering (precedence) of AspectJ caching?

    Hi all,

    I have an application which uses @Cacheable annotations through AspectJ caching.

    I.e.
    <cache:annotation-driven mode="aspectj"/>

    I also have some AspectJ AOP running (authorization checks) through an "@Around" annotated aspect with a related pointcut.

    How do I control the execution ordering of these two aspects. I want to execute the authorization checks around the caching, but it seems the caching is performed with the higher precedence (i.e. first "on the way in" and last "on the way out").

    Best regards,
    Morten

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    As you do with other advices as well by specifying the order property...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

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
  •