org.mule.impl.container
Class DescriptorContainerContext

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

public class DescriptorContainerContext
extends AbstractContainerContext

Will load the component from the descriptors' own properties.


Field Summary
static String DESCRIPTOR_CONTAINER_NAME
           
 
Fields inherited from class org.mule.impl.container.AbstractContainerContext
logger
 
Constructor Summary
DescriptorContainerContext()
           
 
Method Summary
 void configure(Reader configuration)
           
 Object getComponent(Object key)
          Queries a component from the underlying container
 void setName(String name)
          The identifying name of the container.
 
Methods inherited from class org.mule.impl.container.AbstractContainerContext
configure, dispose, getDefaultDocType, getDefaultEncoding, getName, getXmlDeclaration, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR_CONTAINER_NAME

public static final String DESCRIPTOR_CONTAINER_NAME
See Also:
Constant Field Values
Constructor Detail

DescriptorContainerContext

public DescriptorContainerContext()
Method Detail

configure

public void configure(Reader configuration)
               throws ContainerException
Specified by:
configure in class AbstractContainerContext
Throws:
ContainerException

setName

public void setName(String name)
Description copied from interface: UMOContainerContext
The identifying name of the container. Note that implementations should provide a default name that users can choose to override The name can be used to reference a container when more than one is registered

Specified by:
setName in interface UMOContainerContext
Overrides:
setName in class AbstractContainerContext

getComponent

public Object getComponent(Object key)
                    throws ObjectNotFoundException
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


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.