Results 1 to 3 of 3

Thread: Ordering aspects

  1. #1

    Default Ordering aspects

    am trying to use Spring AOP with Spring MVC Controller. I have 3 aspects, and want the to be in specific order. In order to do this, I use Ordered interface and implement getOrder method:

    Code:
    @Aspect 
    @Component 
    public class LoggingAspect implements Ordered{ 
     
    public int getOrder() { 
      System.out.println("Abra"); 
      return 1; 
    }
    The getOrder doesn't do the trick. I will appreciate any practical advice, or if you don't have the exact answer I will appreciate any theoretical knowledge about the Spring Proxy and the weaving mechanism.

    I will post any Code/Configuration required upon demand. Thanks for reading.

  2. #2
    Join Date
    May 2011
    Location
    New Delhi, India
    Posts
    157

  3. #3
    Join Date
    May 2011
    Location
    New Delhi, India
    Posts
    157

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
  •