|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2005 the original author or authors. |
| 2 | + * Copyright 2002-2020 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
20 | 20 | import javax.jms.Message;
|
21 | 21 |
|
22 | 22 | /**
|
23 |
| - * To be used with JmsTemplate's send method that convert an object to a message. |
24 |
| - * It allows for further modification of the message after it has been processed |
25 |
| - * by the converter. This is useful for setting of JMS Header and Properties. |
| 23 | + * To be used with JmsTemplate's send method that converts an object to a message. |
26 | 24 | *
|
27 |
| - * <p>This often as an anonymous class within a method implementation. |
| 25 | + * <p>This allows for further modification of the message after it has been processed |
| 26 | + * by the converter and is useful for setting JMS headers and properties. |
| 27 | + * |
| 28 | + * <p>Often implemented as a lambda expression or as an anonymous inner class. |
28 | 29 | *
|
29 | 30 | * @author Mark Pollack
|
30 | 31 | * @since 1.1
|
|
36 | 37 | public interface MessagePostProcessor {
|
37 | 38 |
|
38 | 39 | /**
|
39 |
| - * Apply a MessagePostProcessor to the message. The returned message is |
40 |
| - * typically a modified version of the original. |
| 40 | + * Process the given message. |
| 41 | + * <p>The returned message is typically a modified version of the original. |
41 | 42 | * @param message the JMS message from the MessageConverter
|
42 |
| - * @return the modified version of the Message |
| 43 | + * @return a post-processed variant of the message, or simply the incoming |
| 44 | + * message; never {@code null} |
43 | 45 | * @throws javax.jms.JMSException if thrown by JMS API methods
|
44 | 46 | */
|
45 | 47 | Message postProcessMessage(Message message) throws JMSException;
|
|
0 commit comments