polishing

This commit is contained in:
Oleg Zhurakousky
2010-10-27 13:23:21 -04:00
parent d93ff1ad82
commit f577de7eef
2 changed files with 5 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ public class FeedEntryMessageSource extends IntegrationObjectSupport implements
private final Object feedMonitor = new Object();
/**
* Will create a default HttpURLFeedFetcher. If URL is other then http*
* then consider providing custom implementation of the {@link FeedFetcher}
@@ -86,6 +87,8 @@ public class FeedEntryMessageSource extends IntegrationObjectSupport implements
public FeedEntryMessageSource(URL feedUrl) {
this(feedUrl, new HttpURLFeedFetcher(HashMapFeedInfoCache.getInstance()));
}
/**
* Will allow you to provide not only URL but the custom implementation
* of the {@link FeedFetcher}

View File

@@ -30,6 +30,7 @@ import static org.springframework.integration.twitter.config.TwitterNamespaceHan
* @since 2.0
*/
public class UpdateEndpointParser extends AbstractSingleBeanDefinitionParser {
@Override
protected String getBeanClassName(Element element) {
String elementName = element.getLocalName().trim();
@@ -46,6 +47,7 @@ public class UpdateEndpointParser extends AbstractSingleBeanDefinitionParser {
throw new IllegalArgumentException("Element '" + elementName + "' is not supported by this parser");
}
}
@Override
protected boolean shouldGenerateId() {
return true;