|
26 | 26 |
|
27 | 27 | /**
|
28 | 28 | * Annotation that marks a method to be the target of a JMS message
|
29 |
| - * listener on the specified {@link #destination()}. The {@link #containerFactory()} |
| 29 | + * listener on the specified {@link #destination}. The {@link #containerFactory} |
30 | 30 | * identifies the {@link org.springframework.jms.config.JmsListenerContainerFactory
|
31 |
| - * JmsListenerContainerFactory} to use to build the jms listener container. If not |
| 31 | + * JmsListenerContainerFactory} to use to build the JMS listener container. If not |
32 | 32 | * set, a <em>default</em> container factory is assumed to be available with a bean
|
33 | 33 | * name of {@code jmsListenerContainerFactory} unless an explicit default has been
|
34 | 34 | * provided through configuration.
|
35 | 35 | *
|
36 | 36 | * <p>Processing of {@code @JmsListener} annotations is performed by
|
37 | 37 | * registering a {@link JmsListenerAnnotationBeanPostProcessor}. This can be
|
38 | 38 | * done manually or, more conveniently, through the {@code <jms:annotation-driven/>}
|
39 |
| - * element or {@link EnableJms} annotation. |
| 39 | + * element or {@link EnableJms @EnableJms} annotation. |
40 | 40 | *
|
41 | 41 | * <p>Annotated methods are allowed to have flexible signatures similar to what
|
42 |
| - * {@link MessageMapping} provides, that is |
| 42 | + * {@link MessageMapping} provides: |
43 | 43 | * <ul>
|
44 | 44 | * <li>{@link javax.jms.Session} to get access to the JMS session</li>
|
45 |
| - * <li>{@link javax.jms.Message} or one if subclass to get access to the raw JMS message</li> |
46 |
| - * <li>{@link org.springframework.messaging.Message} to use the messaging abstraction counterpart</li> |
| 45 | + * <li>{@link javax.jms.Message} or one of its subclasses to get access to the raw JMS message</li> |
| 46 | + * <li>{@link org.springframework.messaging.Message} to use Spring's messaging abstraction counterpart</li> |
47 | 47 | * <li>{@link org.springframework.messaging.handler.annotation.Payload @Payload}-annotated method
|
48 |
| - * arguments including the support of validation</li> |
| 48 | + * arguments, including support for validation</li> |
49 | 49 | * <li>{@link org.springframework.messaging.handler.annotation.Header @Header}-annotated method
|
50 |
| - * arguments to extract a specific header value, including standard JMS headers defined by |
| 50 | + * arguments to extract specific header values, including standard JMS headers defined by |
51 | 51 | * {@link org.springframework.jms.support.JmsHeaders JmsHeaders}</li>
|
52 | 52 | * <li>{@link org.springframework.messaging.handler.annotation.Headers @Headers}-annotated
|
53 |
| - * argument that must also be assignable to {@link java.util.Map} for getting access to all |
54 |
| - * headers.</li> |
| 53 | + * method argument that must also be assignable to {@link java.util.Map} for obtaining access to all |
| 54 | + * headers</li> |
55 | 55 | * <li>{@link org.springframework.messaging.MessageHeaders MessageHeaders} arguments for
|
56 |
| - * getting access to all headers.</li> |
| 56 | + * obtaining access to all headers</li> |
57 | 57 | * <li>{@link org.springframework.messaging.support.MessageHeaderAccessor MessageHeaderAccessor}
|
58 | 58 | * or {@link org.springframework.jms.support.JmsMessageHeaderAccessor JmsMessageHeaderAccessor}
|
59 |
| - * for convenient access to all method arguments.</li> |
| 59 | + * for convenient access to all method arguments</li> |
60 | 60 | * </ul>
|
61 | 61 | *
|
62 |
| - * <p>Annotated method may have a non {@code void} return type. When they do, the result of the |
63 |
| - * method invocation is sent as a JMS reply to the destination defined by either the |
64 |
| - * {@code JMSReplyTO} header of the incoming message. When this value is not set, a default |
65 |
| - * destination can be provided by adding @{@link org.springframework.messaging.handler.annotation.SendTo |
66 |
| - * SendTo} to the method declaration. |
| 62 | + * <p>Annotated methods may have a non-{@code void} return type. When they do, |
| 63 | + * the result of the method invocation is sent as a JMS reply to the destination |
| 64 | + * defined by the {@code JMSReplyTO} header of the incoming message. If this header |
| 65 | + * is not set, a default destination can be provided by adding |
| 66 | + * {@link org.springframework.messaging.handler.annotation.SendTo @SendTo} to the |
| 67 | + * method declaration. |
67 | 68 | *
|
68 | 69 | * @author Stephane Nicoll
|
69 | 70 | * @since 4.1
|
|
78 | 79 |
|
79 | 80 | /**
|
80 | 81 | * The unique identifier of the container managing this endpoint.
|
81 |
| - * <p>if none is specified an auto-generated one is provided. |
| 82 | + * <p>If none is specified, an auto-generated one is provided. |
82 | 83 | * @see org.springframework.jms.config.JmsListenerEndpointRegistry#getListenerContainer(String)
|
83 | 84 | */
|
84 | 85 | String id() default "";
|
85 | 86 |
|
86 | 87 | /**
|
87 |
| - * The bean name of the {@link org.springframework.jms.config.JmsListenerContainerFactory} |
88 |
| - * to use to create the message listener container responsible to serve this endpoint. |
| 88 | + * The bean name of the {@link org.springframework.jms.config.JmsListenerContainerFactory JmsListenerContainerFactory} |
| 89 | + * to use to create the message listener container responsible for serving this endpoint. |
89 | 90 | * <p>If not specified, the default container factory is used, if any.
|
90 | 91 | */
|
91 | 92 | String containerFactory() default "";
|
92 | 93 |
|
93 | 94 | /**
|
94 | 95 | * The destination name for this listener, resolved through the container-wide
|
95 |
| - * {@link org.springframework.jms.support.destination.DestinationResolver} strategy. |
| 96 | + * {@link org.springframework.jms.support.destination.DestinationResolver DestinationResolver} |
| 97 | + * strategy. |
96 | 98 | */
|
97 | 99 | String destination();
|
98 | 100 |
|
|
102 | 104 | String subscription() default "";
|
103 | 105 |
|
104 | 106 | /**
|
105 |
| - * The JMS message selector expression, if any |
| 107 | + * The JMS message selector expression, if any. |
106 | 108 | * <p>See the JMS specification for a detailed definition of selector expressions.
|
107 | 109 | */
|
108 | 110 | String selector() default "";
|
109 | 111 |
|
110 | 112 | /**
|
111 |
| - * The concurrency for the listener, if any. |
112 |
| - * <p>The concurrency limits can be a "lower-upper" String, e.g. "5-10", or a simple |
113 |
| - * upper limit String, e.g. "10" (the lower limit will be 1 in this case). |
114 |
| - * <p>The underlying container may or may not support all features. For instance, it |
115 |
| - * may not be able to scale: in that case only the upper value is used. |
| 113 | + * The concurrency limits for the listener, if any. |
| 114 | + * <p>The concurrency limits can be a "lower-upper" String — for example, |
| 115 | + * "5-10" — or a simple upper limit String — for example, "10", in |
| 116 | + * which case the lower limit will be 1. |
| 117 | + * <p>Note that the underlying container may or may not support all features. |
| 118 | + * For instance, it may not be able to scale, in which case only the upper limit |
| 119 | + * is used. |
116 | 120 | */
|
117 | 121 | String concurrency() default "";
|
118 | 122 |
|
|
0 commit comments