Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.core.util
Class JndiCloser

    java.lang.Object
      org.apache.logging.log4j.core.util.JndiCloser

    public class JndiCloser

extends Object

Helper class for closing JNDI resources. This class is separate from `Closer` because JNDI is not in Android.

Constructor Summary
`JndiCloser()`

Method Summary
`static void` | `close(Context context)` Closes the specified `Context`.
`static void` | `closeSilently(Context context)` Closes the specified `Context`, ignoring any exceptions thrown by the close operation.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JndiCloser

    public JndiCloser()

Method Detail

### close

    public static void close(Context context)
                      throws NamingException

  Closes the specified `Context`.

  Parameters:
    `context` - the JNDI Context to close, may be `null`
  Throws:
    `NamingException` - if a problem occurred closing the specified JNDI Context

### closeSilently

    public static void closeSilently(Context context)

  Closes the specified `Context`, ignoring any exceptions thrown by the close operation.

  Parameters:
    `context` - the JNDI Context to close, may be `null`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 Apache Software Foundation. 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.