public final class JndiCloser
extends java.lang.Object
Closer because JNDI is not in Android.| Modifier | Constructor and Description |
|---|---|
private |
JndiCloser() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(javax.naming.Context context)
Closes the specified
Context. |
static boolean |
closeSilently(javax.naming.Context context)
Closes the specified
Context, ignoring any exceptions thrown by the close operation. |
public static void close(javax.naming.Context context)
throws javax.naming.NamingException
Context.context - the JNDI Context to close, may be nulljavax.naming.NamingException - if a problem occurred closing the specified JNDI Contextpublic static boolean closeSilently(javax.naming.Context context)
Context, ignoring any exceptions thrown by the close operation.context - the JNDI Context to close, may be null