org.mule.extras.plexus
Class PlexusContainerContext
java.lang.Object
org.mule.impl.container.AbstractContainerContext
org.mule.extras.plexus.PlexusContainerContext
- All Implemented Interfaces:
- Disposable, Initialisable, UMOContainerContext
- public class PlexusContainerContext
- extends AbstractContainerContext
PlexusContainerContext
integrate the plexus container with Mule so that Mule
objects can be constructed using Plexus-managed objects
- Version:
- $Revision: 1.6 $
- Author:
- Brian Topping, Ross Mason
Method Summary |
void |
configure(java.io.Reader configuration)
|
java.lang.Object |
getComponent(java.lang.Object key)
Queries a component from the underlying container |
java.lang.String |
getConfigFile()
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setConfigFile(java.lang.String configFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected Embedder container
configFile
protected java.lang.String configFile
PlexusContainerContext
public PlexusContainerContext()
PlexusContainerContext
public PlexusContainerContext(Embedder container)
getComponent
public java.lang.Object getComponent(java.lang.Object key)
throws ObjectNotFoundException
- Description copied from interface:
UMOContainerContext
- Queries a component from the underlying container
- Parameters:
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
- Returns:
- The component found in the container
- Throws:
ObjectNotFoundException
- if the component is not found
configure
public void configure(java.io.Reader configuration)
throws ContainerException
- Specified by:
configure
in class AbstractContainerContext
- Throws:
ContainerException
getConfigFile
public java.lang.String getConfigFile()
setConfigFile
public void setConfigFile(java.lang.String configFile)
throws ConfigurationException
- Parameters:
configFile
- The configFile to set.
- Throws:
ConfigurationException
initialise
public void initialise()
throws InitialisationException,
RecoverableException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal
error occurs during initialisation an
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.
- Specified by:
initialise
in interface Initialisable
- Overrides:
initialise
in class AbstractContainerContext
- Throws:
InitialisationException
RecoverableException
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.