1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.module.rss.config; |
11 | |
|
12 | |
import org.mule.config.spring.parsers.specific.FilterDefinitionParser; |
13 | |
import org.mule.config.spring.parsers.specific.RouterDefinitionParser; |
14 | |
import org.mule.config.spring.parsers.specific.endpoint.TransportEndpointDefinitionParser; |
15 | |
import org.mule.module.rss.endpoint.RssInboundEndpointFactoryBean; |
16 | |
import org.mule.module.rss.routing.EntryLastUpdatedFilter; |
17 | |
import org.mule.module.rss.routing.FeedLastUpdatedFilter; |
18 | |
import org.mule.module.rss.routing.FeedSplitter; |
19 | |
|
20 | |
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
21 | |
|
22 | |
|
23 | 0 | public class RssNamespaceHandler extends NamespaceHandlerSupport |
24 | |
{ |
25 | |
public void init() |
26 | |
{ |
27 | 0 | registerBeanDefinitionParser("inbound-endpoint", new TransportEndpointDefinitionParser("rss", true, RssInboundEndpointFactoryBean.class, new String[]{"lastUpdate", "splitFeed", "acceptedMimeTypes", "pollingFrequency"}, new String[][]{}, new String[][]{})); |
28 | 0 | registerBeanDefinitionParser("feed-splitter", new RouterDefinitionParser(FeedSplitter.class)); |
29 | 0 | registerBeanDefinitionParser("entry-last-updated-filter", new FilterDefinitionParser(EntryLastUpdatedFilter.class)); |
30 | 0 | registerBeanDefinitionParser("feed-last-updated-filter", new FilterDefinitionParser(FeedLastUpdatedFilter.class)); |
31 | 0 | } |
32 | |
} |