1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.spring.parsers.specific;
12
13 import org.mule.config.spring.parsers.delegate.ParentContextDefinitionParser;
14 import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
15 import org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser;
16
17
18
19
20 public class QueueStoreDefinitionParser extends ParentContextDefinitionParser
21 {
22 public QueueStoreDefinitionParser(Class<?> queueStoreFactoryBeanClass)
23 {
24 super(MuleOrphanDefinitionParser.ROOT_ELEMENT,
25 new MuleOrphanDefinitionParser(queueStoreFactoryBeanClass, true));
26 otherwise(new ChildDefinitionParser("queue-store", queueStoreFactoryBeanClass));
27 }
28
29
30
31
32 public QueueStoreDefinitionParser()
33 {
34 super(MuleOrphanDefinitionParser.ROOT_ELEMENT, new MuleOrphanDefinitionParser(true));
35 otherwise(new ChildDefinitionParser("queue-store"));
36 }
37 }