public abstract class AbstractRouter extends Object implements Router, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
muleContext |
PHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
MuleContext |
getMuleContext() |
RouterStatistics |
getRouterStatistics() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
void |
setRouterStatistics(RouterStatistics stats) |
protected MuleContext muleContext
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposabledispose in interface Disposablepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic MuleContext getMuleContext()
public void setRouterStatistics(RouterStatistics stats)
setRouterStatistics in interface Routerpublic RouterStatistics getRouterStatistics()
getRouterStatistics in interface RouterCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.