public abstract class AbstractJndiNameResolver extends Object implements JndiNameResolver
Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
AbstractJndiNameResolver() |
Modifier and Type | Method and Description |
---|---|
protected Context |
createInitialContext()
Creates a JNDI context using the current
contextFactory |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
InitialContextFactory |
getContextFactory() |
protected Hashtable |
getContextProperties() |
String |
getJndiInitialFactory() |
Map |
getJndiProviderProperties() |
String |
getJndiProviderUrl() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setContextFactory(InitialContextFactory contextFactory) |
void |
setJndiInitialFactory(String jndiInitialFactory) |
void |
setJndiProviderProperties(Map jndiProviderProperties) |
void |
setJndiProviderUrl(String jndiProviderUrl) |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lookup
protected final Log logger
protected Context createInitialContext() throws NamingException
contextFactory
Context
instance. Callers must provide concurrent
access control on the returned value.NamingException
- if there is a problem during the context creation.protected Hashtable getContextProperties()
public String getJndiProviderUrl()
public void setJndiProviderUrl(String jndiProviderUrl)
public String getJndiInitialFactory()
public void setJndiInitialFactory(String jndiInitialFactory)
public Map getJndiProviderProperties()
public void setJndiProviderProperties(Map jndiProviderProperties)
public InitialContextFactory getContextFactory()
public void setContextFactory(InitialContextFactory contextFactory)
public void dispose()
Disposable
dispose
in interface Disposable
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.