Thread: What is weaving in SpringAop?

Forum : New To Java   04-12-2017 06:03:53 PM
User Image
ChanduB

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 25

Posts: 14

What is weaving in SpringAop?

| Quote Date : Dec 4, 2017    Views:328    

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

Comments

User Image
tVivek

Newbie

Joined : Jun 25, 2017

Points : 100

Threads: 0

Posts: 8

Re: What is weaving in SpringAop?

Reply Date : Dec 4, 2017

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

User Image
Rajeev1711

Newbie

Joined : Jun 26, 2017

Points : 115

Threads: 9

Posts: 11

Re: What is weaving in SpringAop?

Reply Date : Dec 4, 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