Class JndiCloser
java.lang.Object
org.apache.logging.log4j.core.util.JndiCloser
Helper class for closing JNDI resources.
This class is separate from
Closer
because JNDI is not in Android.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Closes the specifiedContext
.static boolean
closeSilently
(Context context) Closes the specifiedContext
, ignoring any exceptions thrown by the close operation.
-
Method Details
-
close
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:
-
closeSilently
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:
-