Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ConnectionStrategyDefinitionParser |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: ConnectionStrategyDefinitionParser.java 10489 2008-01-23 17:53:38Z dfeist $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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.api.transport.ConnectionStrategy; | |
13 | import org.mule.config.spring.parsers.generic.ChildDefinitionParser; | |
14 | import org.mule.transport.SimpleRetryConnectionStrategy; | |
15 | ||
16 | /** | |
17 | * Handles the parsing of <code><mule:connection-strategy>, <mule:dispatcher-connection-strategy>, | |
18 | * <mule:receiver-connection-strategy></code> elements in Mule Xml configuration. | |
19 | */ | |
20 | public class ConnectionStrategyDefinitionParser extends ChildDefinitionParser | |
21 | { | |
22 | ||
23 | 0 | public static final Class DEFAULT_CONNECTION_STRATEGY = SimpleRetryConnectionStrategy.class; |
24 | ||
25 | public ConnectionStrategyDefinitionParser(String propertyName) | |
26 | { | |
27 | 0 | super(propertyName, DEFAULT_CONNECTION_STRATEGY, ConnectionStrategy.class, true); |
28 | 0 | } |
29 | ||
30 | /** | |
31 | * Default connection strategies are available in the registry, but have n0 parent | |
32 | */ | |
33 | public ConnectionStrategyDefinitionParser() | |
34 | { | |
35 | 0 | super(null, DEFAULT_CONNECTION_STRATEGY, ConnectionStrategy.class, true); |
36 | 0 | } |
37 | ||
38 | } |