Class MethodJmsListenerEndpoint

java.lang.Object
org.springframework.jms.config.AbstractJmsListenerEndpoint
org.springframework.jms.config.MethodJmsListenerEndpoint
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, JmsListenerEndpoint

public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint implements org.springframework.beans.factory.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 Details

    • MethodJmsListenerEndpoint

      public MethodJmsListenerEndpoint()
  • Method Details

    • setBean

      public void setBean(@Nullable Object bean)
      Set the actual bean instance to invoke this endpoint method on.
    • getBean

      @Nullable public Object getBean()
    • setMethod

      public void setMethod(@Nullable Method method)
      Set the method to invoke for processing a message managed by this endpoint.
    • getMethod

      @Nullable public Method getMethod()
    • setMostSpecificMethod

      public void setMostSpecificMethod(@Nullable Method mostSpecificMethod)
      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

      @Nullable public Method getMostSpecificMethod()
    • setMessageHandlerMethodFactory

      public void setMessageHandlerMethodFactory(org.springframework.messaging.handler.annotation.support.MessageHandlerMethodFactory messageHandlerMethodFactory)
      Set the MessageHandlerMethodFactory to use to build the InvocableHandlerMethod responsible to manage the invocation of this endpoint.
    • setEmbeddedValueResolver

      public void setEmbeddedValueResolver(@Nullable org.springframework.util.StringValueResolver embeddedValueResolver)
      Set a value resolver for embedded placeholders and expressions.
    • setBeanFactory

      public void setBeanFactory(@Nullable org.springframework.beans.factory.BeanFactory beanFactory)
      Set the BeanFactory to use to resolve expressions (may be null).
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
    • createMessageListener

      protected MessagingMessageListenerAdapter createMessageListener(MessageListenerContainer container)
      Description copied from class: AbstractJmsListenerEndpoint
      Create a MessageListener that is able to serve this endpoint for the specified container.
      Specified by:
      createMessageListener in class AbstractJmsListenerEndpoint
    • createMessageListenerInstance

      protected MessagingMessageListenerAdapter createMessageListenerInstance()
      Create an empty MessagingMessageListenerAdapter instance.
      Returns:
      a new MessagingMessageListenerAdapter or subclass thereof
    • getDefaultResponseDestination

      @Nullable protected String getDefaultResponseDestination()
      Return the default response destination, if any.
    • getEndpointDescription

      protected StringBuilder getEndpointDescription()
      Description copied from class: AbstractJmsListenerEndpoint
      Return a description for this endpoint.

      Available to subclasses, for inclusion in their toString() result.

      Overrides:
      getEndpointDescription in class AbstractJmsListenerEndpoint