|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.container.AbstractContainerContext
AbstractContainerContext
provides base container configuration
functions for handling embedded configuration
Field Summary | |
static java.lang.String |
DEFAULT_ENCODING
|
protected Log |
logger
logger used by this class |
Constructor Summary | |
protected |
AbstractContainerContext(java.lang.String name)
|
Method Summary | |
abstract void |
configure(java.io.Reader configuration)
|
void |
configure(java.io.Reader configuration,
java.lang.String doctype,
java.lang.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 fee up any resources If an exception is thrown it should just be logged and processing should continue. |
protected java.lang.String |
getDefaultDocType()
|
protected java.lang.String |
getDefaultEncoding()
|
java.lang.String |
getName()
Gets the identifying name of the container |
protected java.lang.String |
getXmlDeclaration(java.lang.String encoding)
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setName(java.lang.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.umo.manager.UMOContainerContext |
getComponent |
Field Detail |
protected transient Log logger
public static final java.lang.String DEFAULT_ENCODING
Constructor Detail |
protected AbstractContainerContext(java.lang.String name)
Method Detail |
public java.lang.String getName()
UMOContainerContext
getName
in interface UMOContainerContext
public void setName(java.lang.String name)
UMOContainerContext
setName
in interface UMOContainerContext
name
- the identifying name of the containerpublic void initialise() throws InitialisationException, RecoverableException
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 void dispose()
Disposable
dispose
in interface Disposable
public final void configure(java.io.Reader configuration, java.lang.String doctype, java.lang.String encoding) throws ContainerException
UMOContainerContext
configure
in interface UMOContainerContext
configuration
- 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 java.lang.String getXmlDeclaration(java.lang.String encoding)
protected java.lang.String getDefaultDocType()
protected java.lang.String getDefaultEncoding()
public abstract void configure(java.io.Reader configuration) throws ContainerException
ContainerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |