public class

JndiLocatorDelegate

extends JndiLocatorSupport
java.lang.Object
   ↳ org.springframework.jndi.JndiAccessor
     ↳ org.springframework.jndi.JndiLocatorSupport
       ↳ org.springframework.jndi.JndiLocatorDelegate

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.springframework.jndi.JndiLocatorSupport
[Expand]
Inherited Fields
From class org.springframework.jndi.JndiAccessor
Public Constructors
JndiLocatorDelegate()
Public Methods
<T> T lookup(String jndiName, Class<T> requiredType)
Perform an actual JNDI lookup for the given name via the JndiTemplate.
Object lookup(String jndiName)
Perform an actual JNDI lookup for the given name via the JndiTemplate.
[Expand]
Inherited Methods
From class org.springframework.jndi.JndiLocatorSupport
From class org.springframework.jndi.JndiAccessor
From class java.lang.Object

Public Constructors

public JndiLocatorDelegate ()

Public Methods

public T lookup (String jndiName, Class<T> requiredType)

Perform an actual JNDI lookup for the given name via the JndiTemplate.

If the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".

Parameters
jndiName the JNDI name to look up
requiredType the required type of the object
Returns
  • the obtained object

public Object lookup (String jndiName)

Perform an actual JNDI lookup for the given name via the JndiTemplate.

If the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".

Parameters
jndiName the JNDI name to look up
Returns
  • the obtained object