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
-
Method Summary
Modifier and TypeMethodDescriptionprotected MessagingMessageListenerAdapter
createMessageListener
(MessageListenerContainer container) Create aMessageListener
that is able to serve this endpoint for the specified container.protected MessagingMessageListenerAdapter
Create an emptyMessagingMessageListenerAdapter
instance.getBean()
protected String
Return the default response destination, if any.protected StringBuilder
Return a description for this endpoint.void
Set the actual bean instance to invoke this endpoint method on.void
setBeanFactory
(BeanFactory beanFactory) Set theBeanFactory
to use to resolve expressions (may benull
).void
setEmbeddedValueResolver
(StringValueResolver embeddedValueResolver) Set a value resolver for embedded placeholders and expressions.void
setMessageHandlerMethodFactory
(MessageHandlerMethodFactory messageHandlerMethodFactory) Set theMessageHandlerMethodFactory
to use to build theInvocableHandlerMethod
responsible to manage the invocation of this endpoint.void
Set the method to invoke for processing a message managed by this endpoint.void
setMostSpecificMethod
(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 theMessageHandlerMethodFactory
to use to build theInvocableHandlerMethod
responsible to manage the invocation of this endpoint. -
setEmbeddedValueResolver
Set a value resolver for embedded placeholders and expressions. -
setBeanFactory
Set theBeanFactory
to use to resolve expressions (may benull
).- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Parameters:
beanFactory
- owning BeanFactory (nevernull
). The bean can immediately call methods on the factory.- See Also:
-
createMessageListener
Description copied from class:AbstractJmsListenerEndpoint
Create aMessageListener
that is able to serve this endpoint for the specified container.- Specified by:
createMessageListener
in classAbstractJmsListenerEndpoint
-
createMessageListenerInstance
Create an emptyMessagingMessageListenerAdapter
instance.- Returns:
- a new
MessagingMessageListenerAdapter
or subclass thereof
-
getDefaultResponseDestination
Return the default response destination, if any. -
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
-