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 MessageHandlerMethodFactory |
messageHandlerMethodFactory |
private java.lang.reflect.Method |
method |
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() |
private java.lang.String |
getDefaultResponseDestination() |
protected java.lang.StringBuilder |
getEndpointDescription()
Return a description for this endpoint.
|
java.lang.reflect.Method |
getMethod() |
private java.lang.reflect.Method |
getMostSpecificMethod() |
void |
setBean(java.lang.Object bean)
Set the object instance that should manage this endpoint.
|
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 to process a message managed by this endpoint.
|
getConcurrency, getDestination, getId, getSelector, getSubscription, setConcurrency, setDestination, setId, setSelector, setSubscription, setupListenerContainer, toString
private java.lang.Object bean
private java.lang.reflect.Method method
private MessageHandlerMethodFactory messageHandlerMethodFactory
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 setMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory)
MessageHandlerMethodFactory
to use to build the
InvocableHandlerMethod
responsible to manage the invocation
of this endpoint.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.private java.lang.String getDefaultResponseDestination()
private java.lang.reflect.Method getMostSpecificMethod()
protected java.lang.StringBuilder getEndpointDescription()
AbstractJmsListenerEndpoint
Available to subclasses, for inclusion in their toString()
result.
getEndpointDescription
in class AbstractJmsListenerEndpoint