Top Description Fields Constructors Methods
org.springframework.jndi

public Class JndiAccessor

extends Object
Class Inheritance
Known Direct Subclasses
org.springframework.jndi.JndiLocatorSupport
Imports
java.util.Properties, org.apache.commons.logging.Log, .LogFactory, org.springframework.lang.Nullable

Convenient superclass for JNDI accessors, providing "jndiTemplate" and "jndiEnvironment" bean properties.
Author
Juergen Hoeller
Since
1.1
See Also
setJndiTemplate, setJndiEnvironment

Field Summary

Modifier and TypeField and Description
private JndiTemplate
protected final Log
logger

Logger, available to subclasses.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Properties
getJndiEnvironment()

Return the JNDI environment to use for JNDI lookups.

public JndiTemplate
getJndiTemplate()

Return the JNDI template to use for JNDI lookups.

public void
setJndiEnvironment(Properties jndiEnvironment)

Set the JNDI environment to use for JNDI lookups.

public void
setJndiTemplate(JndiTemplate jndiTemplate)

Set the JNDI template to use for JNDI lookups.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jndiTemplateback to summary
private JndiTemplate jndiTemplate
loggerback to summary
protected final Log logger

Logger, available to subclasses.

Constructor Detail

JndiAccessorback to summary
public JndiAccessor()

Method Detail

getJndiEnvironmentback to summary
public Properties getJndiEnvironment()

Return the JNDI environment to use for JNDI lookups.

Annotations
@Nullable
getJndiTemplateback to summary
public JndiTemplate getJndiTemplate()

Return the JNDI template to use for JNDI lookups.

setJndiEnvironmentback to summary
public void setJndiEnvironment(Properties jndiEnvironment)

Set the JNDI environment to use for JNDI lookups.

Creates a JndiTemplate with the given environment settings.

See Also
setJndiTemplate
setJndiTemplateback to summary
public void setJndiTemplate(JndiTemplate jndiTemplate)

Set the JNDI template to use for JNDI lookups.

You can also specify JNDI environment settings via "jndiEnvironment".

See Also
setJndiEnvironment