Class WebSocketAnnotationMethodMessageHandler
- java.lang.Object
- org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler<SimpMessageMappingInfo>
- org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
- org.springframework.web.socket.messaging.WebSocketAnnotationMethodMessageHandler
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
,EmbeddedValueResolverAware
,Lifecycle
,Phased
,SmartLifecycle
,MessageHandler
public class WebSocketAnnotationMethodMessageHandler extends SimpAnnotationMethodMessageHandler
A sub-class ofSimpAnnotationMethodMessageHandler
to provide support forControllerAdvice
with global@MessageExceptionHandler
methods.- Since:
- 4.2
- Author:
- Rossen Stoyanchev
Field Summary
Fields inherited from class org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler
logger
Constructor Summary
Constructors Constructor Description WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.Methods inherited from class org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
createExceptionHandlerMethodResolverFor, getConversionService, getDestination, getDirectLookupDestinations, getHeaderInitializer, getLookupDestination, getMappingComparator, getMappingForMethod, getMatchingMapping, getMessageConverter, getPathMatcher, getPhase, getValidator, handleMatch, initArgumentResolvers, initReturnValueHandlers, isAutoStartup, isHandler, isRunning, resolveEmbeddedValuesInDestinations, setConversionService, setDestinationPrefixes, setEmbeddedValueResolver, setHeaderInitializer, setMessageConverter, setPathMatcher, setValidator, start, stop, stop
Methods inherited from class org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler
createHandlerMethod, detectHandlerMethods, getApplicationContext, getArgumentResolvers, getCustomArgumentResolvers, getCustomReturnValueHandlers, getDestinationPrefixes, getExceptionHandlerMethod, getHandlerMethods, getReturnValueHandlers, handleMessage, handleMessageInternal, handleNoMatch, processHandlerMethodException, registerExceptionHandlerAdvice, registerHandlerMethod, setApplicationContext, setArgumentResolvers, setCustomArgumentResolvers, setCustomReturnValueHandlers, setReturnValueHandlers, toString
Constructor Detail
WebSocketAnnotationMethodMessageHandler
public WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
Method Detail
afterPropertiesSet
public void afterPropertiesSet()
Description copied from interface:InitializingBean
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classAbstractMethodMessageHandler<SimpMessageMappingInfo>