- public interface ContextCallback
Callback interface to be implemented by classes that
need to perform an operation (such as a lookup) in a
JNDI context. This callback approach is valuable in
simplifying error handling, which is performed
by the JndiTemplate class. This is a similar approach to
that used by the JdbcTemplate class.
- Rod Johnson
- See Also:
Do something with the given JNDI context.
public java.lang.Object doInContext(javax.naming.Context ctx)
- Do 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 null
javax.naming.NamingException - Implementations don't need
to catch naming exceptions
Rod Johnson and Spring contributors 2001-2003.