|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.container.MultiContainerContext
public class MultiContainerContext
MultiContainerContext
is a container that hosts other containers
from which components are queried.
Field Summary | |
---|---|
protected static Log |
logger
logger used by this class |
Constructor Summary | |
---|---|
MultiContainerContext()
|
Method Summary | |
---|---|
void |
addContainer(UMOContainerContext container)
|
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. |
Object |
getComponent(Object key)
Queries a component from the underlying container |
String |
getName()
Gets the identifying name of the container |
void |
initialise()
Method used to perform any initialisation work. |
UMOContainerContext |
removeContainer(String name)
|
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 |
Field Detail |
---|
protected static final Log logger
Constructor Detail |
---|
public MultiContainerContext()
Method Detail |
---|
public void setName(String name)
UMOContainerContext
setName
in interface UMOContainerContext
name
- the identifying name of the containerpublic String getName()
UMOContainerContext
getName
in interface UMOContainerContext
public void addContainer(UMOContainerContext container)
public UMOContainerContext removeContainer(String name)
public Object getComponent(Object key) throws ObjectNotFoundException
UMOContainerContext
getComponent
in interface UMOContainerContext
key
- the key fo find the component with. Its up to the individual
implementation to check the type of this key and look up objects
accordingly
ObjectNotFoundException
- if the component is not foundpublic void configure(Reader configuration, String doctype, String encoding) throws ContainerException
UMOContainerContext
configure
in interface UMOContainerContext
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
public void dispose()
Disposable
dispose
in interface Disposable
public 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 from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |