What is an Advisor API in Spring

What is an Advisor API in Spring

Advisor is an aspect that contains just a single advice object associated with a pointcut expression. A pointcut is something that defines at what joinpoints an advice should be applied. Advices can be applied at any joinpoint that is supported by the AOP framework. These Pointcuts allow you to specify where the advice can be applied. 
Any advisor can be used with any advice. The org.springframework.aop.support.DefaultPointcutAdvisor  is the most commonly used advisor class. For example, it can be used with a MethodInterceptor, BeforeAdvice or ThrowsAdvice.

Date:2031-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Spring sub Links

Spring sub interview questions and answers for experienced and fresher