PUBLIC - Liferay Portal Community Edition

Create a chainable AOP mechanism

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 5.2.3, 6.0.1 RC
  • Fix Version/s: 6.0.2 RC
  • Component/s: Performance
  • Labels:
    None
  • Branch Version/s:
    5.1.x, 5.2.x
  • Backported to Branch:
    Committed
  • Similar Issues:
    Show 5 results 

Description

You can add multiple Advice to a single pointcut, spring can chain them up for you. But this comes with performance overhead, since each time you are reaching a pointcut, spring will do a regex checking. So the more advisors you have the slower you are.

This is actually nothing wrong, since you may do need multiple advisors.
But in our system, we have multiple aop needs on service beans which means we needs multiple interceptors on the same pointcut. Multiple times checking in the same place looks not smart.

This improvement gives us the ability to apply a chain style interceptors on a pointcut. This can save some Spring overhead.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: