- Type Parameters:
T- the resulting object type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Note that there is hardly any need to implement this callback interface, as JndiTemplate provides all usual JNDI operations via convenience methods.
doInContextDo something with the given JNDI context.
Implementations don't need to worry about error handling or cleanup, as the JndiTemplate class will handle this.
ctx- the current JNDI context
- a result object, or
NamingException- if thrown by JNDI methods