Spring AOP ( Aspect Oriented Programming )
Cross-cutting concern: Separating the service logic from the business logic is called cross-cutting concern,
Clear cut separation will be there.
Terminologies of AOP:
1. Aspect: It is the class that provides additional services to the project like Transaction management, security, encode/decode, logging etc.
Separating the business logic form the 3rd party service and keeping them in a separate class, that class we call it as Aspect:
2. Advices: Inside aspect, we write logic to give us the
3. Pointcut
4. JointPoint
5. Target
6. Weaving
7. Proxy
=============
Need to dump few topics...coming soon
===========
1. BeforeAdvice: Before the business method, the particular advice should be selected and executed.
2. AfterAdvice: After the execution of business logic method, that particular advice should be executed.
3. AroundAdvice: There will be 3 portions, before executing b.methods...some part of advice will be executed and then b.methods will execute and then remaining portion of the advice will be executed after the b.methods.
4. AfterReturningAdvice: No Exception in the business method, then execute this advice.
5. AfterThrowingAdvice: Exception in the business method, then execute this advice.
Comments
Post a Comment