Package org.springframework.jms.listener
Interface MessageListenerContainer
- All Superinterfaces:
Lifecycle
,Phased
,SmartLifecycle
- All Known Implementing Classes:
AbstractMessageListenerContainer
,AbstractPollingMessageListenerContainer
,DefaultMessageListenerContainer
,JmsMessageEndpointManager
,SimpleMessageListenerContainer
public interface MessageListenerContainer extends SmartLifecycle
Internal abstraction used by the framework representing a message listener container. Not meant to be implemented externally with support for both JMS and JCA style containers.- Since:
- 4.1
- Author:
- Stephane Nicoll
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DestinationResolver
getDestinationResolver()
Return theDestinationResolver
to use to resolve destinations by names.MessageConverter
getMessageConverter()
Return theMessageConverter
that can be used to convertMessage
, if any.boolean
isPubSubDomain()
Return whether the Publish/Subscribe domain (Topics
) is used.boolean
isReplyPubSubDomain()
Return whether the reply destination uses Publish/Subscribe domain (Topics
).void
setupMessageListener(Object messageListener)
Setup the message listener to use.Methods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
Method Detail
setupMessageListener
void setupMessageListener(Object messageListener)
Setup the message listener to use. Throws anIllegalArgumentException
if that message listener type is not supported.
getMessageConverter
MessageConverter getMessageConverter()
Return theMessageConverter
that can be used to convertMessage
, if any.
getDestinationResolver
DestinationResolver getDestinationResolver()
Return theDestinationResolver
to use to resolve destinations by names.
isPubSubDomain
boolean isPubSubDomain()
isReplyPubSubDomain
boolean isReplyPubSubDomain()
Return whether the reply destination uses Publish/Subscribe domain (Topics
). Otherwise, the Point-to-Point domain (Queues
) is used.By default, the value is identical to
isPubSubDomain()
.