Top Description Interfaces Classes
module spring.context

Package org.springframework.jndi

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

The classes in this package make JNDI easier to use, facilitating the accessing of configuration stored in JNDI, and provide useful superclasses for JNDI access classes.

The classes in this package are discussed in Chapter 11 of Expert One-On-One J2EE Design and Development by Rod Johnson (Wrox, 2002).

Interface Summary

Modifier and TypeInterface and Description
public interface
JndiCallback<
the resulting object type
T
>

Callback interface to be implemented by classes that need to perform an operation (such as a lookup) in a JNDI context.

Class Summary

Modifier and TypeClass and Description
public class
JndiAccessor

Convenient superclass for JNDI accessors, providing "jndiTemplate" and "jndiEnvironment" bean properties.

public class
JndiLocatorDelegate

JndiLocatorSupport subclass with public lookup methods, for convenient use as a delegate.

public abstract class
JndiLocatorSupport

Convenient superclass for classes that can locate any number of JNDI objects.

public class
JndiLookupFailureException

RuntimeException to be thrown in case of JNDI lookup failures, in particular from code that does not declare JNDI's checked javax.naming.NamingException: for example, from Spring's JndiObjectTargetSource.

public class
public abstract class
JndiObjectLocator

Convenient superclass for JNDI-based service locators, providing configurable lookup of a specific JNDI resource.

public class
JndiObjectTargetSource

AOP org.springframework.aop.TargetSource that provides configurable JNDI lookups for getTarget() calls.

public class
JndiPropertySource

PropertySource implementation that reads properties from an underlying Spring JndiLocatorDelegate.

public class
JndiTemplate

Helper class that simplifies JNDI operations.

public class
JndiTemplateEditor

Properties editor for JndiTemplate objects.

public class
TypeMismatchNamingException

Exception thrown if a type mismatch is encountered for an object located in a JNDI environment.