org.mule.routing
Class AbstractRouter
java.lang.Object
org.mule.routing.AbstractRouter
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, Router
- Direct Known Subclasses:
- AbstractOutboundRouter, AbstractResponseRouter, DefaultInterfaceBinding, SelectiveConsumer
public abstract class AbstractRouter
- extends Object
- implements Router, MuleContextAware
Implements the shared methods that all routers have. The implementations of the different
router types can vary depending on their usage pattern. The types of router are inbound, outbound
response and nested.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
muleContext
protected MuleContext muleContext
AbstractRouter
public AbstractRouter()
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
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
getMuleContext
public MuleContext getMuleContext()
setRouterStatistics
public void setRouterStatistics(RouterStatistics stats)
- Specified by:
setRouterStatistics
in interface Router
getRouterStatistics
public RouterStatistics getRouterStatistics()
- Specified by:
getRouterStatistics
in interface Router
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.