private static class WebSocketAnnotationMethodMessageHandler.MessagingControllerAdviceBean extends java.lang.Object implements MessagingAdviceBean
Modifier and Type | Field and Description |
---|---|
private ControllerAdviceBean |
adviceBean |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier | Constructor and Description |
---|---|
private |
MessagingControllerAdviceBean(ControllerAdviceBean adviceBean) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<MessagingAdviceBean> |
createFromList(java.util.List<ControllerAdviceBean> beans) |
java.lang.Class<?> |
getBeanType()
Return the type of the contained advice bean.
|
int |
getOrder()
Get the order value of this object.
|
boolean |
isApplicableToBeanType(java.lang.Class<?> beanType)
Whether this
MessagingAdviceBean applies to the given bean type. |
java.lang.Object |
resolveBean()
Return the advice bean instance, if necessary resolving a bean specified
by name through the BeanFactory.
|
private final ControllerAdviceBean adviceBean
private MessagingControllerAdviceBean(ControllerAdviceBean adviceBean)
public static java.util.List<MessagingAdviceBean> createFromList(java.util.List<ControllerAdviceBean> beans)
public java.lang.Class<?> getBeanType()
MessagingAdviceBean
If the bean type is a CGLIB-generated class, the original user-defined class is returned.
getBeanType
in interface MessagingAdviceBean
public java.lang.Object resolveBean()
MessagingAdviceBean
resolveBean
in interface MessagingAdviceBean
public boolean isApplicableToBeanType(java.lang.Class<?> beanType)
MessagingAdviceBean
MessagingAdviceBean
applies to the given bean type.isApplicableToBeanType
in interface MessagingAdviceBean
beanType
- the type of the bean to checkpublic int getOrder()
Ordered
Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet load-on-startup
values).
Same order values will result in arbitrary sort positions for the affected objects.
getOrder
in interface Ordered
Ordered.HIGHEST_PRECEDENCE
,
Ordered.LOWEST_PRECEDENCE