Modifier and Type | Method and Description |
---|---|
static void |
close(Context context)
Closes the specified
Context . |
static boolean |
closeSilently(Context context)
Closes the specified
Context , ignoring any exceptions thrown by the close operation. |
public static void close(Context context) throws NamingException
Context
.context
- the JNDI Context to close, may be null
NamingException
- if a problem occurred closing the specified JNDI Contextpublic static boolean closeSilently(Context context)
Context
, ignoring any exceptions thrown by the close operation.context
- the JNDI Context to close, may be null
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.