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
-
Method Summary
Modifier and TypeMethodDescriptionprocessMessage
(Message<?> message) Process the Message and return a value (or null).void
setBeanFactory
(BeanFactory beanFactory)
-
Constructor Details
-
BeanNameMessageProcessor
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
processMessage
Description copied from interface:MessageProcessor
Process the Message and return a value (or null).- Specified by:
processMessage
in interfaceMessageProcessor<T>
- Parameters:
message
- The message to process.- Returns:
- The result.
-