Results 1 to 2 of 2

Thread: Adding custom logic to @Cacheable

  1. #1

    Default Adding custom logic to @Cacheable

    Hi,

    Is there a way in which one can add some logic to the @Cacheable aspect?
    Can this be done by an aspect which would intercept all the @Cacheable services? And then, you would have to specify which of the aspects to run first (yours, or the Cacheable one)?
    I am thinking of a simple case, just logging some info, then invoking the default behavior.

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

    Default

    I suggest a read of the reference guide, especially the AOP part this explains how to specify aspects and how to specify/control the order of execution...
    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

Posting Permissions

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