public class EventPublishingMessageChannelAdapter extends Object implements org.springframework.messaging.MessageHandler
Constructor and Description |
---|
EventPublishingMessageChannelAdapter(EventBus eventBus)
Initialize the adapter to publish all incoming events to the given
eventBus . |
EventPublishingMessageChannelAdapter(EventBus eventBus,
EventFilter filter)
Initialize the adapter to publish all incoming events to the given
eventBus if they accepted by the
given filter . |
public EventPublishingMessageChannelAdapter(EventBus eventBus)
eventBus
.eventBus
- The event bus to publish events onpublic EventPublishingMessageChannelAdapter(EventBus eventBus, EventFilter filter)
eventBus
if they accepted by the
given filter
.eventBus
- The event bus to publish events on.filter
- The filter that indicates which events to publish.public void handleMessage(org.springframework.messaging.Message<?> message)
message
. If the filter refuses the message, it is ignored.handleMessage
in interface org.springframework.messaging.MessageHandler
message
- The message containing the event to publishCopyright © 2010-2014. All Rights Reserved.