public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint implements BeanFactoryAware
JmsListenerEndpoint
providing the method to invoke to process
an incoming message for this endpoint.Constructor and Description |
---|
MethodJmsListenerEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected MessagingMessageListenerAdapter |
createMessageListener(MessageListenerContainer container)
Create a
MessageListener that is able to serve this endpoint for the
specified container. |
protected MessagingMessageListenerAdapter |
createMessageListenerInstance()
Create an empty
MessagingMessageListenerAdapter instance. |
Object |
getBean() |
protected String |
getDefaultResponseDestination()
Return the default response destination, if any.
|
protected StringBuilder |
getEndpointDescription()
Return a description for this endpoint.
|
Method |
getMethod() |
Method |
getMostSpecificMethod() |
void |
setBean(Object bean)
Set the actual bean instance to invoke this endpoint method on.
|
void |
setBeanFactory(BeanFactory beanFactory)
Set the
BeanFactory to use to resolve expressions (may be null ). |
void |
setEmbeddedValueResolver(StringValueResolver embeddedValueResolver)
Set a value resolver for embedded placeholders and expressions.
|
void |
setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
Set the
MessageHandlerMethodFactory to use to build the
InvocableHandlerMethod responsible to manage the invocation
of this endpoint. |
void |
setMethod(Method method)
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.
|
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
public void setBean(@Nullable Object bean)
public void setMethod(@Nullable Method method)
public void setMostSpecificMethod(@Nullable Method mostSpecificMethod)
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).
public void setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
MessageHandlerMethodFactory
to use to build the
InvocableHandlerMethod
responsible to manage the invocation
of this endpoint.public void setEmbeddedValueResolver(@Nullable StringValueResolver embeddedValueResolver)
public void setBeanFactory(@Nullable BeanFactory beanFactory)
BeanFactory
to use to resolve expressions (may be null
).setBeanFactory
in interface BeanFactoryAware
beanFactory
- owning BeanFactory (never null
).
The bean can immediately call methods on the factory.BeanInitializationException
protected MessagingMessageListenerAdapter createMessageListener(MessageListenerContainer container)
AbstractJmsListenerEndpoint
MessageListener
that is able to serve this endpoint for the
specified container.createMessageListener
in class AbstractJmsListenerEndpoint
protected MessagingMessageListenerAdapter createMessageListenerInstance()
MessagingMessageListenerAdapter
instance.MessagingMessageListenerAdapter
or subclass thereof@Nullable protected String getDefaultResponseDestination()
protected StringBuilder getEndpointDescription()
AbstractJmsListenerEndpoint
Available to subclasses, for inclusion in their toString()
result.
getEndpointDescription
in class AbstractJmsListenerEndpoint