Class BeanNameMessageProcessor<T>
java.lang.Object
org.springframework.integration.handler.BeanNameMessageProcessor<T>
- Type Parameters:
T- the expectedprocessMessage(org.springframework.messaging.Message<?>)result type.
- All Implemented Interfaces:
Aware,BeanFactoryAware,MessageProcessor<T>
public class BeanNameMessageProcessor<T>
extends Object
implements MessageProcessor<T>, BeanFactoryAware
An "artificial"
MessageProcessor for lazy-load of target bean by its name.
For internal use only.- Since:
- 5.0
- Author:
- Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessMessage(Message<?> message) Process the Message and return a value (or null).voidsetBeanFactory(BeanFactory beanFactory)
-
Constructor Details
-
BeanNameMessageProcessor
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
processMessage
Description copied from interface:MessageProcessorProcess the Message and return a value (or null).- Specified by:
processMessagein interfaceMessageProcessor<T>- Parameters:
message- The message to process.- Returns:
- The result.
-