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 void
close(Context context)
Closes the specifiedContext
.static boolean
closeSilently(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
-
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
-
-