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 java.lang.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 Summary

    Constructors 
    Constructor Description
    BeanNameMessageProcessor​(java.lang.String object, java.lang.String methodName)  
  • Method Summary

    Modifier and Type Method Description
    T processMessage​(org.springframework.messaging.Message<?> message)
    Process the Message and return a value (or null).
    void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.