Package org.apache.sshd.agent.unix
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 poolgetRootPool().- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static AprLibrarygetInstance()get the shared instance of APR library, if none, initialize onestatic booleanisInitialized()is the APR library was initialized.
-
-
-
Method Detail
-
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
-
-