Spring Aspect Oriented Programming – Aspect Introduction & Example
Yeah.., will see what is the meaning of this term Aspect in spring AOP.
- An aspect represent the cross-cutting functionality name, remember just name only.
- One real time service required for a business logic is called one Aspect.
- Aspect denotes only the cross-cutting functionality name not its implementation and all.
See here we are adding 3 services to our withdraw() and deposit() methods at run time. So what is this ? we have 3 Aspects here which are Authentication Aspect, Logging Aspect, Transaction Aspect/ May be Mailing Aspect in future.
Hope you understood right ? am again saying Aspect means just service name, its implementation is irrelevant as of now. That’s about Aspect in spring AOP.
Sivateja Kandula ♦ ( Java/J2EE Developer & Web Designer )
Founder of Java4s.com. You can contact me at sivateja [at] java4s.com