spring-framework / org.springframework.jndi / JndiCallback / doInContext

doInContext

@Nullable abstract fun doInContext(ctx: Context): T

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.

Parameters

ctx - the current JNDI context

Exceptions

NamingException - if thrown by JNDI methods

Return
a result object, or null