Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
BindingDefinitionParser |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: BindingDefinitionParser.java 19191 2010-08-25 21:05:23Z tcarlson $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | package org.mule.config.spring.parsers.specific; | |
11 | ||
12 | import org.mule.config.spring.parsers.generic.ChildDefinitionParser; | |
13 | import org.mule.routing.AbstractAggregator; | |
14 | ||
15 | /** | |
16 | * Binding definition parser for parsing all binding elements configured as part of the service. | |
17 | */ | |
18 | public class BindingDefinitionParser extends ChildDefinitionParser | |
19 | { | |
20 | ||
21 | public BindingDefinitionParser(String setterMethod, Class clazz) | |
22 | { | |
23 | 0 | super(setterMethod, clazz); |
24 | 0 | standardOptions(); |
25 | 0 | } |
26 | ||
27 | // specifically for subclasses of AbstractCorrelationAggregator (requires a "class=..." in the config) | |
28 | public BindingDefinitionParser(String setterMethod) | |
29 | { | |
30 | 0 | super(setterMethod, null, AbstractAggregator.class, true); |
31 | 0 | standardOptions(); |
32 | 0 | } |
33 | ||
34 | protected void standardOptions() | |
35 | { | |
36 | 0 | addMapping("enableCorrelation", "IF_NOT_SET=0,ALWAYS=1,NEVER=2"); |
37 | 0 | } |
38 | ||
39 | } |