Class JndiCloser
- java.lang.Object
-
- org.apache.logging.log4j.core.util.JndiCloser
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(Context context)Closes the specifiedContext.static booleancloseSilently(Context context)Closes the specifiedContext, ignoring any exceptions thrown by the close operation.
-
-
-
Method Detail
-
close
public static void close(Context context) throws NamingException
Closes the specifiedContext.- Parameters:
context- the JNDI Context to close, may benull- Throws:
NamingException- if a problem occurred closing the specified JNDI Context- See Also:
Context.close()
-
closeSilently
public static boolean closeSilently(Context context)
Closes the specifiedContext, ignoring any exceptions thrown by the close operation.- Parameters:
context- the JNDI Context to close, may benull- Returns:
- Whether closing succeeded
- See Also:
Context.close()
-
-