Class MethodJmsListenerEndpoint
java.lang.Object
org.springframework.jms.config.AbstractJmsListenerEndpoint
org.springframework.jms.config.MethodJmsListenerEndpoint
- All Implemented Interfaces:
Aware, BeanFactoryAware, JmsListenerEndpoint
public class MethodJmsListenerEndpoint
extends AbstractJmsListenerEndpoint
implements BeanFactoryAware
A
JmsListenerEndpoint providing the method to invoke to process
an incoming message for this endpoint.- Since:
- 4.1
- Author:
- Stephane Nicoll, Juergen Hoeller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MessagingMessageListenerAdaptercreateMessageListener(MessageListenerContainer container) Create aMessageListenerthat is able to serve this endpoint for the specified container.protected MessagingMessageListenerAdapterCreate an emptyMessagingMessageListenerAdapterinstance.getBean()Return the default response destination, if any.protected StringBuilderReturn a description for this endpoint.voidSet the actual bean instance to invoke this endpoint method on.voidsetBeanFactory(@Nullable BeanFactory beanFactory) Set theBeanFactoryto use to resolve expressions (may benull).voidsetEmbeddedValueResolver(@Nullable StringValueResolver embeddedValueResolver) Set a value resolver for embedded placeholders and expressions.voidsetMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory) Set theMessageHandlerMethodFactoryto use to build theInvocableHandlerMethodresponsible to manage the invocation of this endpoint.voidSet the method to invoke for processing a message managed by this endpoint.voidsetMostSpecificMethod(@Nullable Method mostSpecificMethod) Set the most specific method known for this endpoint's declaration.Methods inherited from class AbstractJmsListenerEndpoint
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
-
Constructor Details
-
MethodJmsListenerEndpoint
public MethodJmsListenerEndpoint()
-
-
Method Details
-
setBean
-
getBean
-
setMethod
-
getMethod
-
setMostSpecificMethod
-
getMostSpecificMethod
-
setMessageHandlerMethodFactory
Set theMessageHandlerMethodFactoryto use to build theInvocableHandlerMethodresponsible to manage the invocation of this endpoint. -
setEmbeddedValueResolver
Set a value resolver for embedded placeholders and expressions. -
setBeanFactory
Set theBeanFactoryto use to resolve expressions (may benull).- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Parameters:
beanFactory- owning BeanFactory (nevernull). The bean can immediately call methods on the factory.- See Also:
-
createMessageListener
Description copied from class:AbstractJmsListenerEndpointCreate aMessageListenerthat is able to serve this endpoint for the specified container.- Specified by:
createMessageListenerin classAbstractJmsListenerEndpoint
-
createMessageListenerInstance
Create an emptyMessagingMessageListenerAdapterinstance.- Returns:
- a new
MessagingMessageListenerAdapteror subclass thereof
-
getDefaultResponseDestination
-
getEndpointDescription
Description copied from class:AbstractJmsListenerEndpointReturn a description for this endpoint.Available to subclasses, for inclusion in their
toString()result.- Overrides:
getEndpointDescriptionin classAbstractJmsListenerEndpoint
-