Class AprLibrary

java.lang.Object
org.apache.sshd.agent.unix.AprLibrary

public final class AprLibrary extends Object

Internal singleton used for initializing correctly the APR native library and the associated root memory pool.

It'll finalize nicely the native resources (libraries and memory pools).

Each memory pool used in the APR transport module needs to be children of the root pool getRootPool().
Author:
Apache MINA Project
  • Method Details

    • getInstance

      public static AprLibrary getInstance()
      get the shared instance of APR library, if none, initialize one
      Returns:
      the current APR library singleton
    • isInitialized

      public static boolean isInitialized()
      is the APR library was initialized.
      Returns:
      true if the Library is initialized, false otherwise
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable