Thread: What is weaving in SpringAop?

Forum : New To Java   4 Dec, 2017 23:03
User Image


Joined: 20 Apr, 2017

Points: 100

Threads: 26

Posts: 14

What is weaving in SpringAop?

| Quote Date : 4 Dec, 2017    Views:483    

Guys can any one elborate,what I weaving in spring Aop?


User Image


Joined : 25 Jun, 2017

Points : 100

Threads: 0

Posts: 8

Re: What is weaving in SpringAop?

Reply Date : 5 Dec, 2017

The process of Advising the Aspect on the target class based on the point cuts to build proxy is called  weaving.?

User Image


Joined : 26 Jun, 2017

Points : 115

Threads: 9

Posts: 11

Re: What is weaving in SpringAop?

Reply Date : 4 Dec, 2017

The process of advising an aspect in a particular pointcut is called weaving.

let's say we have a pointcut (method containing business logic) for which we want to perform auditing. In this case we will write the auditing logic in a separate class. This auditing logic has to be performed before somebody access the actual method(containing business logic), i.e before the actual method is  called, we need to track the class or a person who has accessed it. in this case we can go with before advice of aop. Here the  auditing logic is the aspect and the method which is performing the business operation is called point cut. If somebody calls the method with business logic, first auditing  will be performed and then the actual method will be called. This entire process is called weaving.   correct if i m wrong!

Load More

No More Comments