@@ -67,6 +67,7 @@ interface JmsClient {
67
67
/**
68
68
* Create a new {@code JmsClient} for the given {@link ConnectionFactory}.
69
69
* @param connectionFactory the factory to obtain JMS connections from
70
+ * @return a new {@code JmsClient} instance
70
71
*/
71
72
static JmsClient create (ConnectionFactory connectionFactory ) {
72
73
return new DefaultJmsClient (connectionFactory , null );
@@ -76,25 +77,28 @@ static JmsClient create(ConnectionFactory connectionFactory) {
76
77
* Create a new {@code JmsClient} for the given {@link ConnectionFactory}.
77
78
* @param connectionFactory the factory to obtain JMS connections from
78
79
* @param messageConverter the message converter for payload objects
80
+ * @return a new {@code JmsClient} instance
79
81
*/
80
82
static JmsClient create (ConnectionFactory connectionFactory , MessageConverter messageConverter ) {
81
83
return new DefaultJmsClient (connectionFactory , messageConverter );
82
84
}
83
85
84
86
/**
85
- * Create a new {@code JmsClient} for the given {@link ConnectionFactory }.
87
+ * Create a new {@code JmsClient} for the given {@link JmsOperations }.
86
88
* @param jmsTemplate the {@link JmsTemplate} to use for performing operations
87
89
* (can be a custom {@link JmsOperations} implementation as well)
90
+ * @return a new {@code JmsClient} instance
88
91
*/
89
92
static JmsClient create (JmsOperations jmsTemplate ) {
90
93
return new DefaultJmsClient (jmsTemplate , null );
91
94
}
92
95
93
96
/**
94
- * Create a new {@code JmsClient} for the given {@link ConnectionFactory }.
97
+ * Create a new {@code JmsClient} for the given {@link JmsOperations }.
95
98
* @param jmsTemplate the {@link JmsTemplate} to use for performing operations
96
99
* (can be a custom {@link JmsOperations} implementation as well)
97
100
* @param messageConverter the message converter for payload objects
101
+ * @return a new {@code JmsClient} instance
98
102
*/
99
103
static JmsClient create (JmsOperations jmsTemplate , MessageConverter messageConverter ) {
100
104
return new DefaultJmsClient (jmsTemplate , messageConverter );
0 commit comments