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