org.mule.impl.container
Class MuleContainerContext

java.lang.Object
  extended byorg.mule.impl.container.AbstractContainerContext
      extended byorg.mule.impl.container.MuleContainerContext
All Implemented Interfaces:
Disposable, Initialisable, UMOContainerContext

public class MuleContainerContext
extends AbstractContainerContext

MuleContainerContext is a default resolver that doesn't support external reference resolution. It's function is to provide a complete implementation when a componenet resolver is not defined. The default (legacy) behaviour is to build a component key as a fully qualified class name

Version:
$Revision: 1.3 $
Author:
Ross Mason

Field Summary
 
Fields inherited from class org.mule.impl.container.AbstractContainerContext
DEFAULT_ENCODING, logger
 
Constructor Summary
MuleContainerContext()
           
 
Method Summary
 void configure(java.io.Reader configuration)
           
 java.lang.Object getComponent(java.lang.Object key)
          Queries a component from the underlying container
 void initialise()
          Method used to perform any initialisation work.
 
Methods inherited from class org.mule.impl.container.AbstractContainerContext
configure, dispose, getDefaultDocType, getDefaultEncoding, getName, getXmlDeclaration, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleContainerContext

public MuleContainerContext()
Method Detail

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)
Specified by:
configure in class AbstractContainerContext

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.