1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.module.atom; |
11 | |
|
12 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
13 | |
import org.mule.config.spring.parsers.specific.ComponentDefinitionParser; |
14 | |
import org.mule.config.spring.parsers.specific.MessageProcessorDefinitionParser; |
15 | |
import org.mule.config.spring.parsers.specific.RouterDefinitionParser; |
16 | |
import org.mule.config.spring.parsers.specific.endpoint.TransportEndpointDefinitionParser; |
17 | |
import org.mule.expression.transformers.ExpressionArgument; |
18 | |
import org.mule.module.atom.endpoint.AtomInboundEndpointFactoryBean; |
19 | |
import org.mule.module.atom.routing.FeedSplitter; |
20 | |
import org.mule.module.atom.routing.URIRouteFilter; |
21 | |
import org.mule.module.atom.transformers.AtomEntryBuilderTransformer; |
22 | |
|
23 | |
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
24 | |
|
25 | 0 | public class AtomNamespaceHandler extends NamespaceHandlerSupport |
26 | |
{ |
27 | |
public void init() |
28 | |
{ |
29 | 0 | registerBeanDefinitionParser("inbound-endpoint", new TransportEndpointDefinitionParser("atom", true, AtomInboundEndpointFactoryBean.class, new String[]{"lastUpdate", "splitFeed", "acceptedMimeTypes", "pollingFrequency"}, new String[][]{}, new String[][]{})); |
30 | |
|
31 | 0 | registerBeanDefinitionParser("route-filter", new ChildDefinitionParser("filter", URIRouteFilter.class)); |
32 | 0 | registerBeanDefinitionParser("feed-splitter", new RouterDefinitionParser(FeedSplitter.class)); |
33 | 0 | registerBeanDefinitionParser("component", new ComponentDefinitionParser(AbderaServiceComponent.class)); |
34 | 0 | registerBeanDefinitionParser("entry-builder-transformer", new MessageProcessorDefinitionParser(AtomEntryBuilderTransformer.class)); |
35 | 0 | registerBeanDefinitionParser("entry-property", new ChildDefinitionParser("argument", ExpressionArgument.class)); |
36 | |
|
37 | 0 | } |
38 | |
} |
39 | |
|
40 | |
|