Package org.springframework.jms.config
Class SimpleJmsListenerEndpoint
java.lang.Object
org.springframework.jms.config.AbstractJmsListenerEndpoint
org.springframework.jms.config.SimpleJmsListenerEndpoint
- All Implemented Interfaces:
JmsListenerEndpoint
A
JmsListenerEndpoint
simply providing the MessageListener
to
invoke to process an incoming message for this endpoint.- Since:
- 4.1
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MessageListener
createMessageListener
(MessageListenerContainer container) Create aMessageListener
that is able to serve this endpoint for the specified container.protected StringBuilder
Return a description for this endpoint.Return theMessageListener
to invoke when a message matching the endpoint is received.void
setMessageListener
(MessageListener messageListener) Set theMessageListener
to invoke when a message matching the endpoint is received.Methods inherited from class org.springframework.jms.config.AbstractJmsListenerEndpoint
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
-
Constructor Details
-
SimpleJmsListenerEndpoint
public SimpleJmsListenerEndpoint()
-
-
Method Details
-
setMessageListener
Set theMessageListener
to invoke when a message matching the endpoint is received. -
getMessageListener
Return theMessageListener
to invoke when a message matching the endpoint is received. -
createMessageListener
Description copied from class:AbstractJmsListenerEndpoint
Create aMessageListener
that is able to serve this endpoint for the specified container.- Specified by:
createMessageListener
in classAbstractJmsListenerEndpoint
-
getEndpointDescription
Description copied from class:AbstractJmsListenerEndpoint
Return a description for this endpoint.Available to subclasses, for inclusion in their
toString()
result.- Overrides:
getEndpointDescription
in classAbstractJmsListenerEndpoint
-