public abstract class AbstractAgent extends Object implements Agent, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
muleContext |
protected String |
name |
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAgent(String name) |
| Modifier and Type | Method and Description |
|---|---|
List |
getDependentAgents() |
String |
getDescription()
Should be a 1 line description of the agent
|
String |
getName()
Gts the name of the object
|
abstract void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
void |
setName(String name)
Sets the name of the object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregistered, unregistereddisposeprotected MuleContext muleContext
protected String name
protected AbstractAgent(String name)
public final String getName()
NamedObjectgetName in interface NamedObjectpublic final void setName(String name)
NamedObjectsetName in interface NamedObjectname - the name of the objectpublic String getDescription()
AgentgetDescription in interface Agentpublic List getDependentAgents()
getDependentAgents in interface Agentnull.public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic abstract 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 fromCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.