接口 MessagingAdviceBean
- 所有超级接口:
Ordered
public interface MessagingAdviceBean extends 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.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Class<?>
getBeanType()
Return the type of the contained advice bean.boolean
isApplicableToBeanType(Class<?> beanType)
Whether thisMessagingAdviceBean
applies to the given bean type.Object
resolveBean()
Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
方法详细资料
getBeanType
Class<?> getBeanType()
Return the type of the contained advice bean.If the bean type is a CGLIB-generated class, the original user-defined class is returned.
resolveBean
Object resolveBean()
Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
isApplicableToBeanType
boolean isApplicableToBeanType(Class<?> beanType)
Whether thisMessagingAdviceBean
applies to the given bean type.- 参数:
beanType
- the type of the bean to check