- Building Microservices with Spring
- Dinesh Rajput Rajesh R V
- 116字
- 2021-07-02 14:54:14
Pointcut
Internet company makes a number of internet plans according to usage of internet data (customers like my wife need more data) because it is not possible for any internet company to provide same plan for all customers or a unique plan for each customer. Instead, each plan is assigned to the subset of the customers. In the same way, an advice is not necessary to apply to all join points in an application. You can define an expression that selects one or more Join Points in the application. This expression is known as pointcut. It helps to narrow down the join points advised by an aspect. Let's see another term of AOP that is Aspect.