org.mule.impl.container
Class JndiContainerContext
java.lang.Object
org.mule.impl.container.AbstractContainerContext
org.mule.impl.container.JndiContainerContext
- All Implemented Interfaces:
- Disposable, Initialisable, UMOContainerContext
- Direct Known Subclasses:
- RmiContainerContext
public class JndiContainerContext
- extends AbstractContainerContext
JndiContainerContext
is a container implementaiton that exposes a
jndi context. Whatever properties are set on the container in configuration will
be passed to the initial context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected volatile Context context
JndiContainerContext
public JndiContainerContext()
JndiContainerContext
protected JndiContainerContext(String name)
getEnvironment
public Map getEnvironment()
setEnvironment
public void setEnvironment(Map environment)
getContext
public Context getContext()
setContext
public void setContext(InitialContext context)
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
- Specified by:
configure
in class AbstractContainerContext
- Throws:
ContainerException
initialise
public void initialise()
throws InitialisationException
- 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
- if a fatal error occurs causing the Mule
instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.