- Spring AOP - Discussion
- Spring AOP - Useful Resources
- Spring AOP - Quick Guide
- Spring AOP - Custom Annotation
- Spring AOP - Proxy
- Spring AOP - Around Advice
- Spring AOP - After Throwing Advice
- Spring AOP - After Returning Advice
- Spring AOP - After Advice
- Spring AOP - Before Aspect
- Spring AOP - Pointcut Methods
- Spring AOP - Application
- Spring AOP - Around Advice
- Spring AOP - After Throwing Advice
- Spring AOP - After Returning Advice
- Spring AOP - After Advice
- Spring AOP - Before Advice
- Spring AOP - Pointcut Methods
- Spring AOP - Application
- Spring AOP - Implementations
- Spring AOP - Advice Types
- Spring AOP - Core Concepts
- Spring AOP - Environment Setup
- Spring AOP - Overview
- Spring AOP - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Spring AOP - Core Concepts
Before we start working with AOP, let us become famipar with the AOP concepts and terminologies. These terms are not specific to Spring, rather they are related to AOP.
Sr.No. | Terms & Description |
---|---|
1 | Aspect A module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An apppcation can have any number of aspects depending on the requirement. |
2 | Join point This represents a point in your apppcation where you can plug-in AOP aspect. You can also say, it is the actual place in the apppcation where an action will be taken using Spring AOP framework. |
3 | Advice This is the actual action to be taken either before or after the method execution. This is the actual piece of code that is invoked during program execution by Spring AOP framework. |
4 | PointCut This is a set of one or more joinpoints where an advice should be executed. You can specify PointCuts using expressions or patterns as we will see in our AOP examples. |
5 | Introduction An introduction allows you to add new methods or attributes to existing classes. |
6 | Target object The object being advised by one or more aspects. This object will always be a proxied object. Also referred to as the advised object. |
7 | Weaving Weaving is the process of pnking aspects with other apppcation types or objects to create an advised object. This can be done at compile time, load time, or at runtime. |