本文整理了Java中org.eclipse.osgi.service.resolver.State.setNativePathsInvalid()
方法的一些代码示例,展示了State.setNativePathsInvalid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.setNativePathsInvalid()
方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称:State
方法名:setNativePathsInvalid
[英]Sets the native code paths of a native code description as invalid. Native code paths are invalid if they can not be found in the bundle content.
The framework, or some other entity which has access to bundle content, will call this method to validate or invalidate native code paths.
[中]将本机代码描述的本机代码路径设置为无效。如果在捆绑包内容中找不到本机代码路径,则它们无效。
框架或其他一些可以访问捆绑内容的实体将调用此方法来验证或使本机代码路径无效。
代码示例来源:origin: org.eclipse/org.eclipse.osgi
private void validateNativeCodePaths(BundleDescription newDescription, BaseData data) {
NativeCodeSpecification nativeCode = newDescription.getNativeCodeSpecification();
if (nativeCode == null)
return;
NativeCodeDescription nativeCodeDescs[] = nativeCode.getPossibleSuppliers();
for (int i = 0; i < nativeCodeDescs.length; i++) {
BaseStorageHook storageHook = (BaseStorageHook) data.getStorageHook(BaseStorageHook.KEY);
if (storageHook != null)
try {
storageHook.validateNativePaths(nativeCodeDescs[i].getNativePaths());
} catch (BundleException e) {
stateManager.getSystemState().setNativePathsInvalid(nativeCodeDescs[i], true);
}
}
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi
private void validateNativeCodePaths(BundleDescription newDescription, BaseData data) {
NativeCodeSpecification nativeCode = newDescription.getNativeCodeSpecification();
if (nativeCode == null)
return;
NativeCodeDescription nativeCodeDescs[] = nativeCode.getPossibleSuppliers();
for (int i = 0; i < nativeCodeDescs.length; i++) {
BaseStorageHook storageHook = (BaseStorageHook) data.getStorageHook(BaseStorageHook.KEY);
if (storageHook != null)
try {
storageHook.validateNativePaths(nativeCodeDescs[i].getNativePaths());
} catch (BundleException e) {
stateManager.getSystemState().setNativePathsInvalid(nativeCodeDescs[i], true);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!