October 2017
Intermediate to advanced
396 pages
10h 2m
English
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 |
|
@Before |
<aop:before> |
It defines before advice. |
|
@After |
<aop:after> |
It defines after advice. |
|
@AfterReturning |
<aop:after-returning> |
It defines after returning advice. |
|
@AfterThrowing |
<aop:after-throwing> |
It defines after throwing advice. |
|
@Around |
<aop:around> |
It defines around advice. |
|
@Aspect |
<aop:aspect> |
It defines an aspect. ... |
Read now
Unlock full access