org.mule.routing
Class AbstractRouterCollection
java.lang.Object
org.mule.routing.AbstractRouterCollection
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, RouterCollection
- Direct Known Subclasses:
- DefaultBindingCollection, DefaultInboundRouterCollection, DefaultOutboundRouterCollection, DefaultResponseRouterCollection
public abstract class AbstractRouterCollection
- extends Object
- implements RouterCollection, MuleContextAware
AbstractRouterCollection provides common method implementations of
router collections for in and outbound routers.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient Log logger
- logger used by this class
matchAll
protected boolean matchAll
routers
protected List<Router> routers
muleContext
protected MuleContext muleContext
AbstractRouterCollection
public AbstractRouterCollection(int type)
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise in interface Initialisable
- Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose in interface Disposable
setRouters
public void setRouters(List<? extends Router> routers)
- Specified by:
setRouters in interface RouterCollection
addRouter
public void addRouter(Router router)
- Specified by:
addRouter in interface RouterCollection
removeRouter
public Router removeRouter(Router router)
- Specified by:
removeRouter in interface RouterCollection
getRouters
public List<Router> getRouters()
- Specified by:
getRouters in interface RouterCollection
getCatchAllStrategy
public RouterCatchAllStrategy getCatchAllStrategy()
- Specified by:
getCatchAllStrategy in interface RouterCollection
setCatchAllStrategy
public void setCatchAllStrategy(RouterCatchAllStrategy catchAllStrategy)
- Specified by:
setCatchAllStrategy in interface RouterCollection
isMatchAll
public boolean isMatchAll()
- Specified by:
isMatchAll in interface RouterCollection
setMatchAll
public void setMatchAll(boolean matchAll)
- Specified by:
setMatchAll in interface RouterCollection
getStatistics
public RouterStatistics getStatistics()
- Specified by:
getStatistics in interface RouterCollection
setStatistics
public void setStatistics(RouterStatistics stat)
- Specified by:
setStatistics in interface RouterCollection
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext in interface MuleContextAware
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.