本文整理了Java中aQute.bnd.osgi.Analyzer.fixupAttributes()
方法的一些代码示例,展示了Analyzer.fixupAttributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.fixupAttributes()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:fixupAttributes
[英]Fixup Attributes Execute any macros on an export and
[中]Fixup属性在导出上执行任何宏,并
代码示例来源:origin: biz.aQute/bndlib
/**
* Provide any macro substitutions and versions for exported packages.
*/
void augmentExports(Packages exports) {
for (PackageRef packageRef : exports.keySet()) {
String packageName = packageRef.getFQN();
setProperty(CURRENT_PACKAGE, packageName);
try {
Attrs attributes = exports.get(packageRef);
Attrs exporterAttributes = classpathExports.get(packageRef);
if (exporterAttributes == null)
continue;
for (Map.Entry<String,String> entry : exporterAttributes.entrySet()) {
String key = entry.getKey();
if (key.equalsIgnoreCase(SPECIFICATION_VERSION))
key = VERSION_ATTRIBUTE;
// dont overwrite and no directives
if (!key.endsWith(":") && !attributes.containsKey(key)) {
attributes.put(key, entry.getValue());
}
}
fixupAttributes(attributes);
removeAttributes(attributes);
}
finally {
unsetProperty(CURRENT_PACKAGE);
}
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
unsetProperty(CURRENT_PACKAGE);
fixupAttributes(packageRef, attributes);
removeAttributes(attributes);
代码示例来源:origin: biz.aQute.bnd/bnd
unsetProperty(CURRENT_PACKAGE);
fixupAttributes(packageRef, attributes);
removeAttributes(attributes);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
unsetProperty(CURRENT_PACKAGE);
fixupAttributes(packageRef, attributes);
removeAttributes(attributes);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
unsetProperty(CURRENT_PACKAGE);
fixupAttributes(packageRef, attributes);
removeAttributes(attributes);
代码示例来源:origin: biz.aQute.bnd/bndlib
importAttributes.put(IMPORT_DIRECTIVE, exportAttributes.get(IMPORT_DIRECTIVE));
fixupAttributes(packageRef, importAttributes);
removeAttributes(importAttributes);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
importAttributes.put(IMPORT_DIRECTIVE, exportAttributes.get(IMPORT_DIRECTIVE));
fixupAttributes(packageRef, importAttributes);
removeAttributes(importAttributes);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
importAttributes.put(IMPORT_DIRECTIVE, exportAttributes.get(IMPORT_DIRECTIVE));
fixupAttributes(packageRef, importAttributes);
removeAttributes(importAttributes);
代码示例来源:origin: biz.aQute.bnd/bnd
importAttributes.put(IMPORT_DIRECTIVE, exportAttributes.get(IMPORT_DIRECTIVE));
fixupAttributes(packageRef, importAttributes);
removeAttributes(importAttributes);
代码示例来源:origin: biz.aQute/bndlib
importAttributes.put(IMPORT_DIRECTIVE, exportAttributes.get(IMPORT_DIRECTIVE));
fixupAttributes(importAttributes);
removeAttributes(importAttributes);
内容来源于网络,如有侵权,请联系作者删除!