Class AbstractMessageBrokerConfiguration

java.lang.Object
org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
All Implemented Interfaces:
Aware, ApplicationContextAware
Direct Known Subclasses:
WebSocketMessageBrokerConfigurationSupport

public abstract class AbstractMessageBrokerConfiguration extends Object implements ApplicationContextAware
Provides essential configuration for handling messages with simple messaging protocols such as STOMP.

clientInboundChannel(org.springframework.core.task.TaskExecutor) and clientOutboundChannel(org.springframework.core.task.TaskExecutor) deliver messages to and from remote clients to several message handlers such as the following.

brokerChannel(org.springframework.messaging.support.AbstractSubscribableChannel, org.springframework.messaging.support.AbstractSubscribableChannel, org.springframework.core.task.TaskExecutor) delivers messages from within the application to the respective message handlers. brokerMessagingTemplate(org.springframework.messaging.support.AbstractSubscribableChannel, org.springframework.messaging.support.AbstractSubscribableChannel, org.springframework.messaging.support.AbstractSubscribableChannel, org.springframework.messaging.converter.CompositeMessageConverter) can be injected into any application component to send messages.

Subclasses are responsible for the parts of the configuration that feed messages to and from the client inbound/outbound channels (e.g. STOMP over WebSocket).

Since:
4.0
Author:
Rossen Stoyanchev, Brian Clozel, Sebastien Deleuze