org.mule.extras.picocontainer
Class PicoContainerContext

java.lang.Object
  extended byorg.mule.extras.picocontainer.PicoContainerContext
All Implemented Interfaces:
UMOContainerContext

public class PicoContainerContext
extends java.lang.Object
implements UMOContainerContext

PicoContainerContext is a Pico Context that can expose pico-managed components for use in the Mule framework.

Version:
$Revision: 1.2 $
Author:
Antonio Lopez, Ross Mason

Field Summary
static java.lang.String CONFIGEXTENSION
           
protected  java.lang.String configFile
          The url of the config file to use
 
Constructor Summary
PicoContainerContext()
           
 
Method Summary
 void configure(java.io.Reader configuration, java.util.Map configurationProperties)
           
protected  void doConfigure(java.io.Reader configReader, java.lang.String builderClassName)
           
 java.lang.Object getComponent(java.lang.Object key)
           
 MutablePicoContainer getContainer()
           
 void setConfigFile(java.lang.String configFile)
          The config file can be a resource on the classpath on a file system.
 void setContainer(MutablePicoContainer container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGEXTENSION

public static final java.lang.String CONFIGEXTENSION
See Also:
Constant Field Values

configFile

protected java.lang.String configFile
The url of the config file to use

Constructor Detail

PicoContainerContext

public PicoContainerContext()
Method Detail

getComponent

public java.lang.Object getComponent(java.lang.Object key)
                              throws ComponentNotFoundException
Specified by:
getComponent in interface UMOContainerContext
Throws:
ComponentNotFoundException

getContainer

public MutablePicoContainer getContainer()
Returns:
Returns the container.

setContainer

public void setContainer(MutablePicoContainer container)
Parameters:
container - The container to set.

setConfigFile

public void setConfigFile(java.lang.String configFile)
                   throws PicoCompositionException
The config file can be a resource on the classpath on a file system.

Parameters:
configFile - The configFile to set.
Throws:
PicoCompositionException

configure

public void configure(java.io.Reader configuration,
                      java.util.Map configurationProperties)
               throws ComponentResolverException
Specified by:
configure in interface UMOContainerContext
Throws:
ComponentResolverException

doConfigure

protected void doConfigure(java.io.Reader configReader,
                           java.lang.String builderClassName)
                    throws ComponentResolverException
Throws:
ComponentResolverException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.