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> controllerAdvice) |
java.lang.Class<?> |
getBeanType()
Return the type of the contained advice bean.
|
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
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> controllerAdvice)
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
Normally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).