28 Mayıs 2020 Perşembe

SpringAOP Kavramları

Kavramların Açıklamaları

Pointcut
@Pointcut Anotasyonu yazısına taşıdım. Pointcut, Advice'ın hangi metodlara uygulanacağını belirtir.

Advice
Açıklaması şöyle. Çalıştırılmasını istediğimiz kodu temsil eder.
An advice is the logic that you want to invoke when you intercept a method.
3 çeşit Advice vardır. Açıklaması şöyle
Different types of advice include “around,” “before” and “after” advice.
Aspect
Açıklaması şöyle. Aspect sınıfı Pointcut ve Advice'ı tanımlar. Pointcut Advice'ın hangi metodlara uygulanacağını belirtir. Advice ne iş yapılacağını belirtir.
A combination of defining when you want to intercept a method call (Pointcut) and what to do (Advice) is called an Aspect.
Join Point
Açıklaması şöyle.
When the code is executed and the condition for pointcut is met, the advice is executed. The Join Point is a specific execution instance of an advice.
Weaver
Açıklaması şöyle.
Weaver is the framework that implements AOP — AspectJ or Spring AOP.

Hiç yorum yok:

Yorum Gönder