|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.container.AbstractContainerContext
public abstract class AbstractContainerContext
AbstractContainerContext
provides base container configuration
functions for handling embedded configuration.
Field Summary | |
---|---|
protected Log |
logger
logger used by this class |
protected MuleContext |
muleContext
|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
protected |
AbstractContainerContext(String name)
|
Method Summary | |
---|---|
abstract void |
configure(Reader configuration)
|
void |
configure(Reader configuration,
String doctype,
String encoding)
This method will be called if there is a configuration fragement for the container to use to configure itself. |
void |
dispose()
A lifecycle method where implementor should free up any resources. |
void |
doInitialise(MuleContext muleContext)
|
protected String |
getDefaultDocType()
|
protected String |
getDefaultEncoding()
|
String |
getName()
Gets the identifying name of the container |
protected String |
getXmlDeclaration(String encoding)
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setMuleContext(MuleContext context)
|
void |
setName(String name)
The identifying name of the container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.api.context.ContainerContext |
---|
getComponent |
Field Detail |
---|
protected transient Log logger
protected MuleContext muleContext
Constructor Detail |
---|
protected AbstractContainerContext(String name)
Method Detail |
---|
public String getName()
ContainerContext
getName
in interface ContainerContext
public void setName(String name)
ContainerContext
setName
in interface ContainerContext
name
- the identifying name of the containerpublic void initialise() throws InitialisationException
Initialisable
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.
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule
instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic final void doInitialise(MuleContext muleContext) throws InitialisationException
InitialisationException
public void dispose()
Disposable
dispose
in interface Disposable
public final void configure(Reader configuration, String doctype, String encoding) throws ContainerException
ContainerContext
configure
in interface ContainerContext
doctype
- the doctype declaration to use for the configuration fragment.
can be null if no validation is to be performed or the fragment is
not Xmlencoding
- the encoding to use in the Xml declaration. Default is UTF-8
ContainerException
protected String getXmlDeclaration(String encoding)
protected String getDefaultDocType()
protected String getDefaultEncoding()
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public abstract void configure(Reader configuration) throws ContainerException
ContainerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |