|
30 | 30 | * Methods annotated with this annotation must have one of the following shapes:
|
31 | 31 | * <p>
|
32 | 32 | * <ul>
|
33 |
| - * <li>Take zero parameters, and return a {@link org.eclipse.microprofile.reactive.streams.SubscriberBuilder}.</li> |
34 |
| - * <li>Take zero parameters, and return a {@link org.reactivestreams.Subscriber}.</li> |
35 |
| - * <li>Take zero parameters, and return a {@link org.eclipse.microprofile.reactive.streams.ProcessorBuilder}.</li> |
36 |
| - * <li>Take zero parameters, and return a {@link org.reactivestreams.Processor}.</li> |
37 |
| - * <li>Accept a single parameter, and return a {@link java.util.concurrent.CompletionStage}.</li> |
38 |
| - * <li>Accept a single parameter, and return void.</li> |
39 |
| - * <li>Accept a single parameter, and return any type.</li> |
| 33 | + * <li>Take zero parameters, and return a {@link org.eclipse.microprofile.reactive.streams.SubscriberBuilder}.</li> |
| 34 | + * <li>Take zero parameters, and return a {@link org.reactivestreams.Subscriber}.</li> |
| 35 | + * <li>Take zero parameters, and return a {@link org.eclipse.microprofile.reactive.streams.ProcessorBuilder}.</li> |
| 36 | + * <li>Take zero parameters, and return a {@link org.reactivestreams.Processor}.</li> |
| 37 | + * <li>Accept a single parameter, and return a {@link java.util.concurrent.CompletionStage}.</li> |
| 38 | + * <li>Accept a single parameter, and return void.</li> |
| 39 | + * <li>Accept a single parameter, and return any type.</li> |
40 | 40 | * </ul>
|
41 | 41 | * <p>
|
42 | 42 | * In addition, implementations of this specification may allow returning additional types, such as implementation
|
|
80 | 80 | @Retention(RetentionPolicy.RUNTIME)
|
81 | 81 | public @interface Incoming {
|
82 | 82 |
|
83 |
| - /** |
84 |
| - * The topic to subscribe to. |
85 |
| - * <p> |
86 |
| - * If not set, it is assumed some other messaging provider specific mechanism will be used to identify which |
87 |
| - * messages this subscriber will receive. |
88 |
| - */ |
89 |
| - String topic() default ""; |
| 83 | + /** |
| 84 | + * The topic to subscribe to. |
| 85 | + * <p> |
| 86 | + * If not set, it is assumed some other messaging provider specific mechanism will be used to identify which |
| 87 | + * messages this subscriber will receive. |
| 88 | + */ |
| 89 | + String topic() default ""; |
90 | 90 |
|
91 |
| - /** |
92 |
| - * The messaging provider. |
93 |
| - * <p> |
94 |
| - * If not set, then the container may provide a container specific mechanism for selecting a default messaging |
95 |
| - * provider. |
96 |
| - * <p> |
97 |
| - * Note that not all messaging providers are compatible with all containers, it is up to each container to |
98 |
| - * decide which messaging providers it will accept, to define the messaging provider classes to pass here, and |
99 |
| - * to potentially offer a container specific extension point for plugging in new containers. |
100 |
| - * <p> |
101 |
| - * If the container does not support the selected messaging provider, it must raise a deployment exception before |
102 |
| - * the container is initialized. |
103 |
| - * <p> |
104 |
| - * The use of this property is inherently non portable. |
105 |
| - */ |
106 |
| - Class<? extends MessagingProvider> provider() default MessagingProvider.class; |
| 91 | + /** |
| 92 | + * The messaging provider. |
| 93 | + * <p> |
| 94 | + * If not set, then the container may provide a container specific mechanism for selecting a default messaging |
| 95 | + * provider. |
| 96 | + * <p> |
| 97 | + * Note that not all messaging providers are compatible with all containers, it is up to each container to |
| 98 | + * decide which messaging providers it will accept, to define the messaging provider classes to pass here, and |
| 99 | + * to potentially offer a container specific extension point for plugging in new containers. |
| 100 | + * <p> |
| 101 | + * If the container does not support the selected messaging provider, it must raise a deployment exception before |
| 102 | + * the container is initialized. |
| 103 | + * <p> |
| 104 | + * The use of this property is inherently non portable. |
| 105 | + */ |
| 106 | + Class<? extends MessagingProvider> provider() default MessagingProvider.class; |
107 | 107 | }
|
0 commit comments