INT-786, fixed schema to remove camelCase attribute 'feedUrl', adjusted test cases
This commit is contained in:
@@ -39,7 +39,7 @@ public class FeedMessageSourceBeanDefinitionParser extends AbstractPollingInboun
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(feedEntryBuilder, element, "id", "persistentIdentifier");
|
||||
BeanDefinitionBuilder feedBuilder =
|
||||
BeanDefinitionBuilder.genericBeanDefinition("org.springframework.integration.feed.FeedReaderMessageSource");
|
||||
feedBuilder.addConstructorArgValue(element.getAttribute("feedUrl"));
|
||||
feedBuilder.addConstructorArgValue(element.getAttribute("feed-url"));
|
||||
|
||||
String metadataStoreStrategy = element.getAttribute("metadata-store");
|
||||
if (StringUtils.hasText(metadataStoreStrategy)){
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="metadata-store" use="optional" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Allows you to provide cusom implementation of 'org.springframework.integration.context.metadata.MetadataStore'
|
||||
to persist the state of the retrieved feeds to aviod duplicates between restarts.
|
||||
</xsd:documentation>
|
||||
<xsd:appinfo>
|
||||
<tool:annotation kind="ref">
|
||||
<tool:expected-type type="org.springframework.integration.context.metadata.MetadataStore"/>
|
||||
@@ -46,18 +50,12 @@
|
||||
</xsd:appinfo>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="feedUrl" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="persisterMap" type="xsd:string" use="optional">
|
||||
<xsd:attribute name="feed-url" type="xsd:string" use="required">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Allows you to inject Map
|
||||
Allows you to specify URL for RSS/ATOM feed
|
||||
</xsd:documentation>
|
||||
<xsd:appinfo>
|
||||
<tool:annotation kind="ref">
|
||||
<tool:expected-type type="java.util.Map"/>
|
||||
</tool:annotation>
|
||||
</xsd:appinfo>
|
||||
</xsd:annotation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
channel="feedChannel"
|
||||
auto-startup="false"
|
||||
metadata-store="metaStore"
|
||||
feedUrl="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
feed-url="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
<int:poller fixed-rate="10000" max-messages-per-poll="100" />
|
||||
</int-feed:inbound-channel-adapter>
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<int:message-history />
|
||||
|
||||
<int-feed:inbound-channel-adapter id="feedAdapterUsage"
|
||||
channel="feedChannelUsage"
|
||||
feedUrl="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
channel="feedChannelUsage"
|
||||
feed-url="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
<int:poller fixed-rate="10000" max-messages-per-poll="100" fixed-delay="10000"/>
|
||||
</int-feed:inbound-channel-adapter>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
http://www.springframework.org/schema/integration/feed http://www.springframework.org/schema/integration/feed/spring-integration-feed-2.0.xsd">
|
||||
|
||||
<int-feed:inbound-channel-adapter channel="feedChannelUsage"
|
||||
feedUrl="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
feed-url="file:src/test/java/org/springframework/integration/feed/config/sample.rss">
|
||||
<int:poller fixed-rate="10000" max-messages-per-poll="100" fixed-delay="10000"/>
|
||||
</int-feed:inbound-channel-adapter>
|
||||
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
|
||||
http://www.springframework.org/schema/integration/feed http://www.springframework.org/schema/integration/feed/spring-integration-feed-2.0.xsd">
|
||||
|
||||
<int-feed:inbound-channel-adapter id="feedAdapter" channel="feedChannel" auto-startup="false"
|
||||
feedUrl="http://feeds.bbci.co.uk/news/rss.xml">
|
||||
<int-feed:inbound-channel-adapter id="feedAdapter"
|
||||
channel="feedChannel"
|
||||
auto-startup="false"
|
||||
feed-url="http://feeds.bbci.co.uk/news/rss.xml">
|
||||
<int:poller fixed-rate="10000" max-messages-per-poll="100" />
|
||||
</int-feed:inbound-channel-adapter>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user