org.mule.extras.picocontainer
Class PicoContainerContext
java.lang.Object
org.mule.impl.container.AbstractContainerContext
org.mule.extras.picocontainer.PicoContainerContext
- All Implemented Interfaces:
- org.mule.umo.lifecycle.Disposable, org.mule.umo.lifecycle.Initialisable, org.mule.umo.manager.UMOContainerContext
- public class PicoContainerContext
- extends org.mule.impl.container.AbstractContainerContext
PicoContainerContext is a Pico Context that can expose pico-managed
components for use in the Mule framework.
| Fields inherited from class org.mule.impl.container.AbstractContainerContext |
logger |
| 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 |
CONFIGEXTENSION
public static final String CONFIGEXTENSION
- See Also:
- Constant Field Values
configFile
protected String configFile
- The url of the config file to use
PicoContainerContext
public PicoContainerContext()
getExtension
public String getExtension()
setExtension
public void setExtension(String extension)
getComponent
public Object getComponent(Object key)
throws org.mule.umo.manager.ObjectNotFoundException
- Throws:
org.mule.umo.manager.ObjectNotFoundException
getContainer
public org.picocontainer.MutablePicoContainer getContainer()
- Returns:
- Returns the container.
setContainer
public void setContainer(org.picocontainer.MutablePicoContainer container)
- Parameters:
container - The container to set.
setConfigFile
public void setConfigFile(String configFile)
throws org.nanocontainer.integrationkit.PicoCompositionException
- The config file can be a resource on the classpath on a file system.
- Parameters:
configFile - The configFile to set.
- Throws:
org.nanocontainer.integrationkit.PicoCompositionException
configure
public void configure(Reader configuration)
throws org.mule.umo.manager.ContainerException
- Throws:
org.mule.umo.manager.ContainerException
doConfigure
protected void doConfigure(Reader configReader,
String builderClassName)
throws org.mule.umo.manager.ContainerException
- Throws:
org.mule.umo.manager.ContainerException
initialise
public void initialise()
throws org.mule.umo.lifecycle.InitialisationException,
org.mule.umo.lifecycle.RecoverableException
- Throws:
org.mule.umo.lifecycle.InitialisationException
org.mule.umo.lifecycle.RecoverableException
dispose
public void dispose()
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.