@FunctionalInterface public interface JndiCallback<T>
Note that there is hardly any need to implement this callback interface, as JndiTemplate provides all usual JNDI operations via convenience methods.
@Nullable T doInContext(javax.naming.Context ctx) throws javax.naming.NamingException
Implementations don't need to worry about error handling or cleanup, as the JndiTemplate class will handle this.
ctx- the current JNDI context
javax.naming.NamingException- if thrown by JNDI methods