1
2
3
4
5
6
7 package org.mule.config.spring.parsers.specific;
8
9 import org.mule.api.config.ThreadingProfile;
10 import org.mule.config.ChainedThreadingProfile;
11 import org.mule.config.spring.parsers.generic.OrphanDefinitionParser;
12 import org.mule.config.spring.parsers.processors.IdAttribute;
13 import org.mule.config.spring.parsers.processors.NameAttribute;
14
15
16
17
18
19 public class DefaultThreadingProfileDefinitionParser extends OrphanDefinitionParser
20 {
21
22 public DefaultThreadingProfileDefinitionParser(String propertyName)
23 {
24 super(ChainedThreadingProfile.class, true);
25 addMapping("poolExhaustedAction", ThreadingProfile.POOL_EXHAUSTED_ACTIONS);
26 registerPostProcessor(new IdAttribute(propertyName));
27 registerPostProcessor(new NameAttribute(propertyName));
28 }
29
30 }