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.ChildDefinitionParser; |
12 | |
import org.mule.config.spring.parsers.processors.ConstructorReference; |
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
public class ThreadingProfileDefinitionParser extends ChildDefinitionParser |
18 | |
{ |
19 | |
|
20 | |
public ThreadingProfileDefinitionParser(String propertyName, String defaults) |
21 | |
{ |
22 | 0 | super(propertyName, ChainedThreadingProfile.class); |
23 | 0 | addMapping("poolExhaustedAction", ThreadingProfile.POOL_EXHAUSTED_ACTIONS); |
24 | 0 | registerPostProcessor(new ConstructorReference(defaults)); |
25 | 0 | } |
26 | |
|
27 | |
} |