public class DefaultMessageProcessorRegistry extends Object implements MessageProcessorRegistry
DefaultMessageProcessorRegistry class is the default implementation of the
MessageProcessorRegistry interface.| Constructor and Description |
|---|
DefaultMessageProcessorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> processor)
Adds
processor to the message processor registry. |
void |
addProcessors(List<? extends MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> processors)
Adds
processors to the message processor registry. |
MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> |
getProcessorFor(String messageType)
Retrieves a concrete
MessageProcessor for the type of the message. |
List<MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> |
getProcessors()
Retrieve all message processors successfully registered in the message processor registry.
|
void |
removeProcessor(String messageType)
Removes message processor which is identified by the
messageType from the message
processor registry. |
public void addProcessor(MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> processor)
MessageProcessorRegistryprocessor to the message processor registry.addProcessor in interface MessageProcessorRegistryprocessor - Message processor to add to the message processor registry.public void addProcessors(List<? extends MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> processors)
MessageProcessorRegistryprocessors to the message processor registry.addProcessors in interface MessageProcessorRegistryprocessors - List of message processors to add to the message processor registry.public MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse> getProcessorFor(String messageType)
MessageProcessorRegistryMessageProcessor for the type of the message. If not found,
returns null.getProcessorFor in interface MessageProcessorRegistrymessageType - Message type identifier that is unique system-wide.MessageProcessor based on the
messageType. If no processor is found for the message type, returns
null.public void removeProcessor(String messageType)
MessageProcessorRegistrymessageType from the message
processor registry.removeProcessor in interface MessageProcessorRegistrymessageType - Message type identifier that is unique system-wide.public List<MessageProcessor<? extends Message<? extends MessageResponse>,? extends MessageResponse>> getProcessors()
MessageProcessorRegistrygetProcessors in interface MessageProcessorRegistryCopyright © 2018. All rights reserved.