Announcement Announcement Module
Collapse
No announcement yet.
Ordering aspects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Try using @Order
    http://forum.springsource.org/showth...2-Aspect-Order

    Comment


    • #3
      Try using @Order
      http://forum.springsource.org/showth...2-Aspect-Order

      Comment

      Working...
      X