Coverage Report - org.mule.api.routing.SelectiveRouter
 
Classes in this File Line Coverage Branch Coverage Complexity
SelectiveRouter
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id: SelectiveRouter.java 20320 2010-11-24 15:03:31Z 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  
 
 11  
 package org.mule.api.routing;
 12  
 
 13  
 import org.mule.api.processor.MessageProcessor;
 14  
 import org.mule.api.routing.filter.Filter;
 15  
 
 16  
 /**
 17  
  * Routes the event to <code>MessageProcessor</code>s using a {@link Filter} to
 18  
  * evaluate the event being processed and determine if a given route should be used.
 19  
  * <p>
 20  
  * If the implementation supports the use of a default route then this will be used
 21  
  * to route any events that don't match any other routes.
 22  
  */
 23  
 public interface SelectiveRouter extends MessageProcessor
 24  
 {
 25  
     void addRoute(MessageProcessor processor, Filter filter);
 26  
 
 27  
     void updateRoute(MessageProcessor processor, Filter filter);
 28  
 
 29  
     void removeRoute(MessageProcessor processor);
 30  
 
 31  
     void setDefaultRoute(MessageProcessor processor);
 32  
 }