Define aspects using XML configuration
As we know that, we can configure beans in the XML based configuration, similarly you can declare aspects in the XML configuration. Spring provides another AOP namespace and it offers many elements that are used to declare aspects in XML, let's see in the following tables:
Annotation | Parallel XML element | Purpose of XML element |
|
| It defines before advice. |
|
| It defines after advice. |
|
| It defines after returning advice. |
|
| It defines after throwing advice. |
|
| It defines around advice. |
|
| It defines an aspect. |
|
| It enables annotation-driven aspects using |
|
| It defines a pointcut. |
-- |
| It define AOP adviser |
-- |
| It is top level AOP element |
As you can see in the preceding table, a number of AOP...