|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 to JdbcTemplate's approach.
Note that there is hardly any need to implement this callback interface, as JndiTemplate provides all usual JNDI operations via convenience methods.
JndiTemplate
,
JdbcTemplate
Method Summary | |
java.lang.Object |
doInContext(javax.naming.Context ctx)
Do something with the given JNDI context. |
Method Detail |
public java.lang.Object doInContext(javax.naming.Context ctx) throws javax.naming.NamingException
ctx
- the current JNDI context
javax.naming.NamingException
- if thrown by JNDI methods
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |