org.mule.routing
Class AbstractRouterCollection

java.lang.Object
  extended byorg.mule.routing.AbstractRouterCollection
All Implemented Interfaces:
UMORouterCollection
Direct Known Subclasses:
InboundMessageRouter, OutboundMessageRouter, ResponseMessageRouter

public abstract class AbstractRouterCollection
extends java.lang.Object
implements UMORouterCollection

AbstractRouterCollection provides common method implementations of router collections for in and outbound routers.

Version:
$Revision: 1.2 $
Author:
Ross Mason

Field Summary
protected  boolean matchAll
           
protected  java.util.List routers
           
 
Constructor Summary
AbstractRouterCollection(int type)
           
 
Method Summary
 void addRouter(UMORouter router)
           
 UMORouterCatchAllStrategy getCatchAllStrategy()
           
 java.util.List getRouters()
           
 RouterStatistics getStatistics()
           
 boolean isMatchAll()
           
 UMORouter removeRouter(UMORouter router)
           
 void setCatchAllStrategy(UMORouterCatchAllStrategy catchAllStrategy)
           
 void setMatchAll(boolean matchAll)
           
 void setRouters(java.util.List routers)
           
 void setStatistics(RouterStatistics stat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchAll

protected boolean matchAll

routers

protected java.util.List routers
Constructor Detail

AbstractRouterCollection

public AbstractRouterCollection(int type)
Method Detail

setRouters

public void setRouters(java.util.List routers)
Specified by:
setRouters in interface UMORouterCollection

addRouter

public void addRouter(UMORouter router)
Specified by:
addRouter in interface UMORouterCollection

removeRouter

public UMORouter removeRouter(UMORouter router)
Specified by:
removeRouter in interface UMORouterCollection

getRouters

public java.util.List getRouters()
Specified by:
getRouters in interface UMORouterCollection

getCatchAllStrategy

public UMORouterCatchAllStrategy getCatchAllStrategy()
Specified by:
getCatchAllStrategy in interface UMORouterCollection

setCatchAllStrategy

public void setCatchAllStrategy(UMORouterCatchAllStrategy catchAllStrategy)
Specified by:
setCatchAllStrategy in interface UMORouterCollection

isMatchAll

public boolean isMatchAll()
Specified by:
isMatchAll in interface UMORouterCollection

setMatchAll

public void setMatchAll(boolean matchAll)
Specified by:
setMatchAll in interface UMORouterCollection

getStatistics

public RouterStatistics getStatistics()
Specified by:
getStatistics in interface UMORouterCollection

setStatistics

public void setStatistics(RouterStatistics stat)
Specified by:
setStatistics in interface UMORouterCollection


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.