AOP Concepts and Terminology

Posted By : Dinesh Kumar | 16-Aug-2018

Where utilize AOP? 

AOP is for the most part utilized as a part of the following cases: 

to give revelatory venture administrations, for example, definitive exchange administration. 

It enables clients to actualize custom aspects. 

AOP Concepts and Terminology 

 

AOP ideas and phrasings are as per the following: 

Join point 

Join point is any point in your program, for example, technique execution, special case taking care of, field get to and so forth. Spring bolsters just technique execution join point. 

 

Advice 

Advice speaks to a move made by an aspect at a specific join point. There are distinctive kinds of advice: 

Prior to Advice: it executes before a join point. 

In the wake of Returning Advice: it executes after a joint point finishes typically. 

In the wake of Throwing Advice: it executes if strategy exits by tossing an exemption. 

After (at long last) Advice: it executes after a join point paying little respect to join point leave whether regularly or remarkable return. 

Around Advice: It executes when a join point. 

 

Pointcut 

It is an articulation dialect of AOP that matches join points. 

 

Introduction 

It implies the introduction of extra technique and fields for a sort. It enables you to acquaint new interface with any prompted object. 

 

Target Object 

It is the object i.e. being exhorted by at least one aspects. It is otherwise called proxied object in spring since Spring AOP is actualized utilizing runtime intermediaries. 

 

Aspect 

It is a class that contains advice, joinpoints and so on. 

 

Interceptor 

It is an aspect that contains just a single advice. 

 

AOP Proxy 

It is utilized to actualize aspect contracts, made by AOP structure. It will be a JDK dynamic proxy or CGLIB proxy in spring structure. 

 

Weaving 

It is the way toward connecting aspect with other application composes or objects to make a prompted object. Weaving should be possible at assemble time, stack time or runtime. Spring AOP performs weaving at runtime. 

AOP Implementations 

 

AOP executions are given by: 

1. AspectJ 

2. Spring AOP 

3. JBoss AOP

About Author

Author Image
Dinesh Kumar

Dinesh Kumar is an experienced with knowledge of Spring Framework, Spring Boot, Java, Javascript, JQuery, AngularJs, and SQL.

Request for Proposal

Name is required

Comment is required

Sending message..