Other than logging, and transaction management what are some practical applications of AOP?

后端 未结 4 1412
忘了有多久
忘了有多久 2021-01-05 16:03

I understand the principles but i have a hard time seeing where the practical applications are outside of a few. Please enlighten me ;)

4条回答
  •  情歌与酒
    2021-01-05 16:27

    AOP is quite useful when you have a large legacy application and you want to do a across the board change throughout the application.

    Recently I used it to partition the http session scope using an additional cookie (other than session id). It quickly relieved a lot of pain from badly written session bound code.

    Also checkout Glassbox for a very good example of how AOP can help in making light-weight monitoring and performance management tools

提交回复
热议问题