SimpAnnotationMethodMessageHandler to provide support
for ControllerAdvice with global @MessageExceptionHandler methods.
| Modifier and Type | Class and Description |
|---|---|
| private static class | WebSocketAnnotationMethodMessageHandler.
Adapt ControllerAdviceBean to MessagingAdviceBean. |
| Access | Constructor and Description |
|---|---|
| public | WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Overrides org. Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| private void | |
| private void |
| WebSocketAnnotationMethodMessageHandler | back to summary |
|---|---|
| public WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate) | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Overrides org. Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| initControllerAdviceCache | back to summary |
|---|---|
| private void initControllerAdviceCache() | |
| initMessagingAdviceCache | back to summary |
|---|---|
| private void initMessagingAdviceCache(List<MessagingAdviceBean> beans) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ControllerAdviceBean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static List | |
| public Class | getBeanType()
Implements org. Return the type of the contained advice bean. |
| public int | |
| public boolean | isApplicableToBeanType(Class<?>
the type of the bean to check beanType)Implements org. Whether this |
| public Object | resolveBean()
Implements org. Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory. |
| adviceBean | back to summary |
|---|---|
| private final ControllerAdviceBean adviceBean | |
| MessagingControllerAdviceBean | back to summary |
|---|---|
| private MessagingControllerAdviceBean(ControllerAdviceBean adviceBean) | |
| createFromList | back to summary |
|---|---|
| public static List | |
| getBeanType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the type of the contained advice bean. If the bean type is a CGLIB-generated class, the original user-defined class is returned. | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| isApplicableToBeanType | back to summary |
|---|---|
| public boolean isApplicableToBeanType(Class<?> beanType) Implements org. Doc from org. Whether this | |
| resolveBean | back to summary |
|---|---|
| public Object resolveBean() Implements org. Doc from org. Return the advice bean instance, if necessary resolving a bean specified by name through the BeanFactory.
| |