INT-3328: Add EnablePublisher Annotation

JIRA: https://jira.spring.io/browse/INT-3328

INT-3328: Polishing
This commit is contained in:
Artem Bilan
2014-03-17 18:24:18 +02:00
committed by Gary Russell
parent a8c8a4fed5
commit 23a26ca38e
8 changed files with 157 additions and 20 deletions

View File

@@ -345,12 +345,20 @@
components to be declared once only, in the parent context.
</para>
<para>
The <code>@IntegrationComponentScan</code> annotation has also been introduced to permit classpath
The <code>@IntegrationComponentScan</code> annotation has also been introduced to permit classpath
scanning. This annotation plays a similar role as the standard Spring Framework <code>@ComponentScan</code> annotation,
but it is restricted just to Spring Integration specific components and annotations,
which aren't reachable by the standard Spring Framework component scan mechanism.
For example <xref linkend="messaging-gateway-annotation"/>.
</para>
</para>
<para>
The <code>@EnablePublisher</code> annotation has been introduced to register a
<classname>PublisherAnnotationBeanPostProcessor</classname> bean and configure the <code>default-publisher-channel</code>
for those <classname>@Publisher</classname> annotations which are provided without a <code>channel</code> attribute.
If more than one <code>@EnablePublisher</code> annotation is found, they must all have the same value
for the default channel.
See <xref linkend="publisher-annotation"/> for more information.
</para>
</section>
</chapter>

View File

@@ -65,6 +65,14 @@
>Spring Boot - AutoConfigure</ulink>.
</para>
</section>
<section id="4.0-enable-publisher">
<title>@EnablePublisher</title>
<para>
The <code>@EnablePublisher</code> annotation has been added, to allow the specification of a
<code>default-publisher-channel</code> for <classname>@Publisher</classname> annotations.
See <xref linkend="enable-integration"/> for more information.
</para>
</section>
<section id="4.0-redis-cms">
<title>Redis Channel Message Stores</title>
<para>