|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jndi.JndiAccessor
org.springframework.jndi.JndiLocatorSupport
org.springframework.jndi.JndiLocatorDelegate
public class JndiLocatorDelegate
JndiLocatorSupport subclass with public lookup methods,
for convenient use as a delegate.
| Field Summary |
|---|
| Fields inherited from class org.springframework.jndi.JndiLocatorSupport |
|---|
CONTAINER_PREFIX |
| Fields inherited from class org.springframework.jndi.JndiAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
JndiLocatorDelegate()
|
|
| Method Summary | ||
|---|---|---|
java.lang.Object |
lookup(java.lang.String jndiName)
Perform an actual JNDI lookup for the given name via the JndiTemplate. |
|
|
lookup(java.lang.String jndiName,
java.lang.Class<T> requiredType)
Perform an actual JNDI lookup for the given name via the JndiTemplate. |
|
| Methods inherited from class org.springframework.jndi.JndiLocatorSupport |
|---|
convertJndiName, isResourceRef, setResourceRef |
| Methods inherited from class org.springframework.jndi.JndiAccessor |
|---|
getJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiLocatorDelegate()
| Method Detail |
|---|
public java.lang.Object lookup(java.lang.String jndiName)
throws javax.naming.NamingException
JndiLocatorSupportIf the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".
lookup in class JndiLocatorSupportjndiName - the JNDI name to look up
javax.naming.NamingException - if the JNDI lookup failedJndiLocatorSupport.setResourceRef(boolean)
public <T> T lookup(java.lang.String jndiName,
java.lang.Class<T> requiredType)
throws javax.naming.NamingException
JndiLocatorSupportIf the name doesn't begin with "java:comp/env/", this prefix is added if "resourceRef" is set to "true".
lookup in class JndiLocatorSupportjndiName - the JNDI name to look uprequiredType - the required type of the object
javax.naming.NamingException - if the JNDI lookup failedJndiLocatorSupport.setResourceRef(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||