Class BeanNameMessageProcessor<T>

java.lang.Object
org.springframework.integration.handler.BeanNameMessageProcessor<T>
Type Parameters:
T - the expected processMessage(org.springframework.messaging.Message<?>) result type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, MessageProcessor<T>

public class BeanNameMessageProcessor<T> extends Object implements MessageProcessor<T>, org.springframework.beans.factory.BeanFactoryAware
An "artificial" MessageProcessor for lazy-load of target bean by its name. For internal use only.
Since:
5.0
  • Constructor Details

    • BeanNameMessageProcessor

      public BeanNameMessageProcessor(String object, String methodName)
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • processMessage

      @Nullable public T processMessage(org.springframework.messaging.Message<?> message)
      Description copied from interface: MessageProcessor
      Process the Message and return a value (or null).
      Specified by:
      processMessage in interface MessageProcessor<T>
      Parameters:
      message - The message to process.
      Returns:
      The result.