IT 手制品
悠云闲语
一个简单的本地库加载器,用于加载本地库。
使用 SimpleLibInfo
SimpleLibInfo
try { NativeLoader.load(new SimpleLibInfo("x"));} catch (Exception e) { LOGGER.warn(e.getMessage(), e); throw e;}
NativeLoader 将尝试:
NativeLoader
实现 LibInfo
LibInfo
public class LibAInfo implements LibInfo { ...}
// usagetry{ NativeLoader.load(new LibAInfo());} catch (Exception e) { LOGGER.warn(e.getMessage(), e); throw e;}