Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
WhenDefinition |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: WhenDefinition.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.dsl.routers; | |
11 | ||
12 | import org.mule.config.dsl.OutRouteBuilder; | |
13 | import org.mule.routing.filters.ExpressionFilter; | |
14 | ||
15 | /** | |
16 | * TODO | |
17 | */ | |
18 | public class WhenDefinition | |
19 | { | |
20 | private ContentBasedRouter router; | |
21 | ||
22 | WhenDefinition(ContentBasedRouter router) | |
23 | 0 | { |
24 | 0 | this.router = router; |
25 | 0 | } |
26 | ||
27 | public OutRouteBuilder when(String expression) | |
28 | { | |
29 | 0 | ExpressionFilter filter = new ExpressionFilter(expression); |
30 | //filter.setMuleContext(mule); | |
31 | 0 | WhenDefinition wd = new WhenDefinition(router); |
32 | ||
33 | 0 | return null; |
34 | } | |
35 | } |