|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.container.AbstractContainerContext
org.mule.extras.picocontainer.PicoContainerContext
public class PicoContainerContext
PicoContainerContext
is a Pico Context that can expose pico-managed
components for use in the Mule framework.
Field Summary | |
---|---|
static String |
CONFIGEXTENSION
|
protected String |
configFile
The url of the config file to use |
Fields inherited from class org.mule.impl.container.AbstractContainerContext |
---|
logger |
Constructor Summary | |
---|---|
PicoContainerContext()
|
Method Summary | |
---|---|
void |
configure(Reader configuration)
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
protected void |
doConfigure(Reader configReader,
String builderClassName)
|
Object |
getComponent(Object key)
Queries a component from the underlying container |
org.picocontainer.MutablePicoContainer |
getContainer()
|
String |
getExtension()
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setConfigFile(String configFile)
The config file can be a resource on the classpath on a file system. |
void |
setContainer(org.picocontainer.MutablePicoContainer container)
|
void |
setExtension(String extension)
|
Methods inherited from class org.mule.impl.container.AbstractContainerContext |
---|
configure, getDefaultDocType, getDefaultEncoding, getName, getXmlDeclaration, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIGEXTENSION
protected String configFile
Constructor Detail |
---|
public PicoContainerContext()
Method Detail |
---|
public String getExtension()
public void setExtension(String extension)
public Object getComponent(Object key) throws ObjectNotFoundException
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 org.picocontainer.MutablePicoContainer getContainer()
public void setContainer(org.picocontainer.MutablePicoContainer container)
container
- The container to set.public void setConfigFile(String configFile) throws org.nanocontainer.integrationkit.PicoCompositionException
configFile
- The configFile to set.
org.nanocontainer.integrationkit.PicoCompositionException
public void configure(Reader configuration) throws ContainerException
configure
in class AbstractContainerContext
ContainerException
protected void doConfigure(Reader configReader, String builderClassName) throws ContainerException
ContainerException
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
initialise
in class AbstractContainerContext
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
dispose
in class AbstractContainerContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |