|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2008 the original author or authors. |
|
|
|
* Copyright 2002-2010 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -90,7 +90,7 @@ public abstract class JndiLocatorSupport extends JndiAccessor { |
|
|
|
protected <T> T lookup(String jndiName, Class<T> requiredType) throws NamingException { |
|
|
|
protected <T> T lookup(String jndiName, Class<T> requiredType) throws NamingException { |
|
|
|
Assert.notNull(jndiName, "'jndiName' must not be null"); |
|
|
|
Assert.notNull(jndiName, "'jndiName' must not be null"); |
|
|
|
String convertedName = convertJndiName(jndiName); |
|
|
|
String convertedName = convertJndiName(jndiName); |
|
|
|
T jndiObject = null; |
|
|
|
T jndiObject; |
|
|
|
try { |
|
|
|
try { |
|
|
|
jndiObject = getJndiTemplate().lookup(convertedName, requiredType); |
|
|
|
jndiObject = getJndiTemplate().lookup(convertedName, requiredType); |
|
|
|
} |
|
|
|
} |
|
|
|