org.mule.transport.jms.jndi
Class SimpleJndiNameResolver
java.lang.Object
org.mule.transport.jms.jndi.AbstractJndiNameResolver
org.mule.transport.jms.jndi.SimpleJndiNameResolver
- All Implemented Interfaces:
- org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, JndiNameResolver
public class SimpleJndiNameResolver
- extends AbstractJndiNameResolver
Defines a simple JndiNameResolver that maintains a Context
instance opened all the time and always relies on the context to do the look
ups.
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Stoppable |
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
PHASE_NAME |
| Methods inherited from class org.mule.transport.jms.jndi.AbstractJndiNameResolver |
createInitialContext, getContextFactory, getContextProperties, getJndiInitialFactory, getJndiProviderProperties, getJndiProviderUrl, setContextFactory, setJndiInitialFactory, setJndiProviderProperties, setJndiProviderUrl, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJndiNameResolver
public SimpleJndiNameResolver()
lookup
public Object lookup(String name)
throws NamingException
- Description copied from interface:
JndiNameResolver
- Looks up an object by name.
- Parameters:
name - the name of the object to search for
- Returns:
- the object if is found
- Throws:
NamingException - is there is an error during the lookup.
initialise
public void initialise()
throws org.mule.api.lifecycle.InitialisationException
- Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable- Overrides:
initialise in class AbstractJndiNameResolver
- Throws:
org.mule.api.lifecycle.InitialisationException
dispose
public void dispose()
- Specified by:
dispose in interface org.mule.api.lifecycle.Disposable- Overrides:
dispose in class AbstractJndiNameResolver
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.