org.mule.extras.hivemind
Class HiveMindContext

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

public class HiveMindContext
extends AbstractContainerContext

HiveMindContext is a HiveMind Context that can expose HiveMind managed services for use in the Mule framework.

Version:
$Revision: 7976 $
Author:
Massimo Lusetti

Constructor Summary
HiveMindContext()
           
 
Method Summary
 void configure(Reader configuration)
          Just log that we don't need any configuration fragment.
 void dispose()
          Shutdown the registry so to notify every org.apache.hivemind.events.RegistryShutdownListener.
 Object getComponent(Object key)
          Queries a component from the underlying container
protected  org.apache.hivemind.Registry getRegistry()
           
 void initialise()
          Here we build the registry from the standard deployment descriptors location.
 
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
 

Constructor Detail

HiveMindContext

public HiveMindContext()
Method Detail

getRegistry

protected org.apache.hivemind.Registry getRegistry()

getComponent

public Object getComponent(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(Reader configuration)
               throws ContainerException
Just log that we don't need any configuration fragment.

Specified by:
configure in class AbstractContainerContext
Throws:
ContainerException

initialise

public void initialise()
                throws InitialisationException
Here we build the registry from the standard deployment descriptors location.

Specified by:
initialise in interface Initialisable
Overrides:
initialise in class AbstractContainerContext
Throws:
InitialisationException

dispose

public void dispose()
Shutdown the registry so to notify every org.apache.hivemind.events.RegistryShutdownListener.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class AbstractContainerContext


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