View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.config.dsl.routers;
8   
9   import org.mule.config.dsl.OutRouteBuilder;
10  import org.mule.routing.filters.ExpressionFilter;
11  
12  /**
13   * TODO
14   */
15  public class WhenDefinition
16  {
17      private ContentBasedRouter router;
18  
19      WhenDefinition(ContentBasedRouter router)
20      {
21          this.router = router;
22      }
23  
24      public OutRouteBuilder when(String expression)
25      {
26          ExpressionFilter filter = new ExpressionFilter(expression);
27          //filter.setMuleContext(mule);
28          WhenDefinition wd = new WhenDefinition(router);
29  
30          return null;
31      }
32  }