INT-786, fixed schema to remove camelCase attribute 'feedUrl', adjusted test cases

This commit is contained in:
Oleg Zhurakousky
2010-10-17 23:20:35 -04:00
parent 903e8846e8
commit c60b464b0e
6 changed files with 16 additions and 16 deletions

View File

@@ -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)){

View File

@@ -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>