public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint
JmsListenerEndpoint
providing the method to invoke to process
an incoming message for this endpoint.Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
bean |
private BeanFactory |
beanFactory |
private MessageHandlerMethodFactory |
messageHandlerMethodFactory |
private java.lang.reflect.Method |
method |
private java.lang.reflect.Method |
mostSpecificMethod |
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. |
java.lang.Object |
getBean() |
protected java.lang.String |
getDefaultResponseDestination()
Return the default response destination, if any.
|
protected java.lang.StringBuilder |
getEndpointDescription()
Return a description for this endpoint.
|
java.lang.reflect.Method |
getMethod() |
java.lang.reflect.Method |
getMostSpecificMethod() |
private java.lang.String |
resolve(java.lang.String value)
Resolve the specified value if possible.
|
void |
setBean(java.lang.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 (can be null). |
void |
setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
Set the
MessageHandlerMethodFactory to use to build the
InvocableHandlerMethod responsible to manage the invocation
of this endpoint. |
void |
setMethod(java.lang.reflect.Method method)
Set the method to invoke for processing a message managed by this endpoint.
|
void |
setMostSpecificMethod(java.lang.reflect.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
private java.lang.Object bean
private java.lang.reflect.Method method
private java.lang.reflect.Method mostSpecificMethod
private MessageHandlerMethodFactory messageHandlerMethodFactory
private BeanFactory beanFactory
public void setBean(java.lang.Object bean)
public java.lang.Object getBean()
public void setMethod(java.lang.reflect.Method method)
public java.lang.reflect.Method getMethod()
public void setMostSpecificMethod(java.lang.reflect.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 java.lang.reflect.Method getMostSpecificMethod()
public void setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
MessageHandlerMethodFactory
to use to build the
InvocableHandlerMethod
responsible to manage the invocation
of this endpoint.public void setBeanFactory(BeanFactory beanFactory)
BeanFactory
to use to resolve expressions (can be null).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 thereofprotected java.lang.String getDefaultResponseDestination()
private java.lang.String resolve(java.lang.String value)
protected java.lang.StringBuilder getEndpointDescription()
AbstractJmsListenerEndpoint
Available to subclasses, for inclusion in their toString()
result.
getEndpointDescription
in class AbstractJmsListenerEndpoint