aQute.bnd.osgi.Analyzer.parseHeader()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中aQute.bnd.osgi.Analyzer.parseHeader()方法的一些代码示例,展示了Analyzer.parseHeader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.parseHeader()方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:parseHeader

Analyzer.parseHeader介绍

暂无

代码示例

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

Map bundleSymbolicNameHeader = analyzer.parseHeader( symbolicNameAttribute );

代码示例来源:origin: biz.aQute.bnd/bnd

public boolean analyzeJar(Analyzer analyzer) throws Exception {
  Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));
  Jar jar = analyzer.getJar();
  for (String name : map.keySet()) {
    Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
        QUERY.NAMED.toString(), name //
        );
    for (Clazz c : metatypes) {
      jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
    }
  }
  return false;
}
@Override

代码示例来源:origin: biz.aQute/bndlib

public boolean analyzeJar(Analyzer analyzer) throws Exception {

    Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));

    Jar jar = analyzer.getJar();
    for (String name : map.keySet()) {
      Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
          QUERY.NAMED.toString(), name //
          );
      for (Clazz c : metatypes) {
        jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
      }
    }
    return false;
  }
}

代码示例来源:origin: biz.aQute.bnd/bndlib

public boolean analyzeJar(Analyzer analyzer) throws Exception {
  Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));
  Jar jar = analyzer.getJar();
  for (String name : map.keySet()) {
    Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
        QUERY.NAMED.toString(), name //
        );
    for (Clazz c : metatypes) {
      jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
    }
  }
  return false;
}
@Override

代码示例来源:origin: biz.aQute/bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<>(dot.getResources()

代码示例来源:origin: biz.aQute.bnd/bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());

代码示例来源:origin: biz.aQute.bnd/bnd

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<>(dot.getResources()

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

+ project.getVersion() );
String exportHeader = osgiJar.getManifest().getMainAttributes().getValue( Analyzer.EXPORT_PACKAGE );
exportedPackages = analyzer.parseHeader( exportHeader ).keySet();
FileUtils.copyFile( project.getArtifact().getFile(), outputFile );

代码示例来源:origin: org.apache.felix/maven-bundle-plugin

values = analyzer.parseHeader( importPackages );

相关文章

Analyzer类方法