org.springframework.jndi |
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).
|
Java Source File Name | Type | Comment |
JndiAccessor.java | Class | Convenient superclass for JNDI accessors, providing "jndiTemplate"
and "jndiEnvironment" bean properties. |
JndiCallback.java | Interface | Callback interface to be implemented by classes that need to perform an
operation (such as a lookup) in a JNDI context. |
JndiLocatorSupport.java | Class | Convenient superclass for classes that can locate any number of JNDI objects.
Derives from JndiAccessor to inherit the "jndiTemplate" and "jndiEnvironment"
bean properties.
JNDI names may or may not include the "java:comp/env/" prefix expected
by J2EE applications when accessing a locally mapped (ENC - Environmental
Naming Context) resource. |
JndiLookupFailureException.java | Class | 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 . |
JndiObjectFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that looks up a
JNDI object. |
JndiObjectLocator.java | Class | Convenient superclass for JNDI-based service locators,
providing configurable lookup of a specific JNDI resource.
Exposes a
JndiObjectLocator.setJndiName "jndiName" property. |
JndiObjectTargetSource.java | Class | AOP
org.springframework.aop.TargetSource that provides
configurable JNDI lookups for getTarget() calls.
Can be used as alternative to
JndiObjectFactoryBean , to allow for
relocating a JNDI object lazily or for each operation (see "lookupOnStartup"
and "cache" properties). |
JndiTemplate.java | Class | Helper class that simplifies JNDI operations. |
JndiTemplateEditor.java | Class | Properties editor for JndiTemplate objects. |
TypeMismatchNamingException.java | Class | Exception thrown if a type mismatch is encountered for an object
located in a JNDI environment. |