@@ -67,6 +67,7 @@ interface JmsClient {
6767 /**
6868 * Create a new {@code JmsClient} for the given {@link ConnectionFactory}.
6969 * @param connectionFactory the factory to obtain JMS connections from
70+ * @return a new {@code JmsClient} instance
7071 */
7172 static JmsClient create (ConnectionFactory connectionFactory ) {
7273 return new DefaultJmsClient (connectionFactory , null );
@@ -76,25 +77,28 @@ static JmsClient create(ConnectionFactory connectionFactory) {
7677 * Create a new {@code JmsClient} for the given {@link ConnectionFactory}.
7778 * @param connectionFactory the factory to obtain JMS connections from
7879 * @param messageConverter the message converter for payload objects
80+ * @return a new {@code JmsClient} instance
7981 */
8082 static JmsClient create (ConnectionFactory connectionFactory , MessageConverter messageConverter ) {
8183 return new DefaultJmsClient (connectionFactory , messageConverter );
8284 }
8385
8486 /**
85- * Create a new {@code JmsClient} for the given {@link ConnectionFactory }.
87+ * Create a new {@code JmsClient} for the given {@link JmsOperations }.
8688 * @param jmsTemplate the {@link JmsTemplate} to use for performing operations
8789 * (can be a custom {@link JmsOperations} implementation as well)
90+ * @return a new {@code JmsClient} instance
8891 */
8992 static JmsClient create (JmsOperations jmsTemplate ) {
9093 return new DefaultJmsClient (jmsTemplate , null );
9194 }
9295
9396 /**
94- * Create a new {@code JmsClient} for the given {@link ConnectionFactory }.
97+ * Create a new {@code JmsClient} for the given {@link JmsOperations }.
9598 * @param jmsTemplate the {@link JmsTemplate} to use for performing operations
9699 * (can be a custom {@link JmsOperations} implementation as well)
97100 * @param messageConverter the message converter for payload objects
101+ * @return a new {@code JmsClient} instance
98102 */
99103 static JmsClient create (JmsOperations jmsTemplate , MessageConverter messageConverter ) {
100104 return new DefaultJmsClient (jmsTemplate , messageConverter );
0 commit comments