public interface MessagingAdviceBean extends Ordered
Component stereotypes such as
@Controller with annotation
handler methods often need cross-cutting functionality across all or a subset
of such annotated components. A primary example of this is the need for "global"
annotated exception handler methods but the concept applies more generally.
|Modifier and Type||Method and Description|
Return the type of the contained advice bean.
Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
@Nullable java.lang.Class<?> getBeanType()
If the bean type is a CGLIB-generated class, the original user-defined class is returned.
boolean isApplicableToBeanType(java.lang.Class<?> beanType)
MessagingAdviceBeanapplies to the given bean type.
beanType- the type of the bean to check