Package org.springframework.jms.config
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()protected StringReturn 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(BeanFactory beanFactory) Set theBeanFactoryto use to resolve expressions (may benull).voidsetEmbeddedValueResolver(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(Method mostSpecificMethod) Set the most specific method known for this endpoint's declaration.Methods inherited from class org.springframework.jms.config.AbstractJmsListenerEndpoint
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
-
Constructor Details
-
MethodJmsListenerEndpoint
public MethodJmsListenerEndpoint()
-
-
Method Details
-
setBean
Set the actual bean instance to invoke this endpoint method on. -
getBean
-
setMethod
Set the method to invoke for processing a message managed by this endpoint. -
getMethod
-
setMostSpecificMethod
Set the most specific method known for this endpoint's declaration.In case of a proxy, this will be the method on the target class (if annotated itself, that is, if not just annotated in an interface).
- Since:
- 4.2.3
-
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
Return the default response destination, if any. -
getEndpointDescription
Description copied from class:AbstractJmsListenerEndpointReturn a description for this endpoint.Available to subclasses, for inclusion in their
toString()result.- Overrides:
getEndpointDescriptionin classAbstractJmsListenerEndpoint
-