Package org.apache.sshd.agent.unix
Class AprLibrary
java.lang.Object
org.apache.sshd.agent.unix.AprLibrary
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 poolgetRootPool()
.- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
static AprLibrary
get the shared instance of APR library, if none, initialize onestatic boolean
is the APR library was initialized.
-
Method Details
-
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
-