View Javadoc

1   /*
2    * $Id: FilterBasedXmlMessageSplitter.java 20321 2010-11-24 15:21:24Z dfeist $
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.module.xml.routing;
11  
12  import org.mule.api.lifecycle.InitialisationException;
13  
14  /**
15   * This splitter will select the endpoint to send a message part on by filtering parts using the endpoint filters.
16   */
17  public class FilterBasedXmlMessageSplitter extends XmlMessageSplitter
18  {
19      public FilterBasedXmlMessageSplitter()
20      {
21          //By disabling this, the endpoints will be invoked with the first endpoint being checked first
22          //and its filter applied before it is used
23          this.setDisableRoundRobin(true);
24      }
25  
26      @Override
27      public void initialise() throws InitialisationException
28      {
29          logger.warn("Deprecation warning: The FilteringXmlMessageSplitter router has been deprecating in Mule 2.2 in favour of using the <expression-splitter> router.");
30          super.initialise();
31      }
32  }