June 2018
Intermediate to advanced
408 pages
11h 23m
English
As we know from the start of this chapter, AOP is a programming paradigm that helps to decouple our code by separating the implementation of crosscutting concerns. AspectJ is the original implementation of AOP, which implements both concerns and the weaving of crosscutting concerns using extensions of Java programming language.
To enable AspectJ in our project, we need AspectJ libraries and AspectJ provides different libraries based on its usage. One can find all its libraries, at https://mvnrepository.com/artifact/org.aspectj.
In AspectJ, Aspects will be created in a file with the extension .aj. The following is the sample TransferAspect.aj file:
public aspect TransferAspect { pointcut callTransfer(Account acc1, Account ...Read now
Unlock full access