public interface JndiCallback
Note that there is hardly any need to implement this callback interface, as JndiTemplate provides all usual JNDI operations via convenience methods.
Note that this interface is an exact copy of the Spring Framework's identically named interface from their 2.5.4 distribution - we didn't want to re-invent the wheel, but not require a full dependency on the Spring framework, nor does Spring make available only its JNDI classes in a small jar, or we would have used that.
JndiTemplate| 限定符和类型 | 方法和说明 |
|---|---|
Object |
doInContext(Context ctx)
Do something with the given JNDI context.
|
Object doInContext(Context ctx) throws NamingException
ctx - the current JNDI contextnullNamingException - if thrown by JNDI methodsCopyright © 2020. All rights reserved.