com.lambdaworks.jni.LibraryLoaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crypto Show documentation
Show all versions of crypto Show documentation
High-performance cryptography for the JVM
The newest version!
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package com.lambdaworks.jni;
/**
* {@code LibraryLoaders} will create the appropriate {@link LibraryLoader} for
* the VM it is running on.
*
* @author Will Glozer
*/
public class LibraryLoaders {
/**
* Create a new {@link LibraryLoader} for the current VM.
*
* @return the loader.
*/
public static LibraryLoader loader() {
String vmSpec = System.getProperty("java.vm.specification.name");
return vmSpec.startsWith("Java") ? new JarLibraryLoader() : new SystemLibraryLoader();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy