Interface MessagingAdviceBean
- All Superinterfaces:
- Ordered
Represents a Spring-managed bean with cross-cutting functionality to be
 applied to one or more Spring beans with annotation-based message
 handling methods.
 
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.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>Return the type of the contained advice bean.booleanisApplicableToBeanType(Class<?> beanType) Whether thisMessagingAdviceBeanapplies to the given bean type.Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
- 
Method Details- 
getBeanTypeReturn the type of the contained advice bean.If the bean type is a CGLIB-generated class, the original user-defined class is returned. 
- 
resolveBeanObject resolveBean()Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
- 
isApplicableToBeanTypeWhether thisMessagingAdviceBeanapplies to the given bean type.- Parameters:
- beanType- the type of the bean to check
 
 
-