org.eclipse.osgi.service.resolver.State.getResolver()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(125)

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

State.getResolver介绍

[英]Returns the resolver associated with this state. A state can work with at most one resolver at any given time. Similarly, a resolver can work with at most one state at a time.
[中]返回与此状态关联的解析程序。一个状态在任何给定时间最多可以使用一个解析器。类似地,解析器一次最多可以处理一个状态。

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.osgi

/**
 * @throws BundleException  
 */
public void frameworkStart(BundleContext context) throws BundleException {
  this.systemContext = context;
  context.addBundleListener(this);
  addHelpers(context.getBundles());
  // this is a composite resolve helper registry; add it to the resolver
  ((ResolverImpl) adaptor.getState().getResolver()).setCompositeResolveHelperRegistry(this);
  // register this as the composite bundle factory
  factoryService = context.registerService(new String[] {CompositeBundleFactory.class.getName()}, this, null);
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

/**
 * @throws BundleException  
 */
public void frameworkStart(BundleContext context) throws BundleException {
  this.systemContext = context;
  context.addBundleListener(this);
  addHelpers(context.getBundles());
  // this is a composite resolve helper registry; add it to the resolver
  ((ResolverImpl) adaptor.getState().getResolver()).setCompositeResolveHelperRegistry(this);
  // register this as the composite bundle factory
  factoryService = context.registerService(new String[] {CompositeBundleFactory.class.getName()}, this, null);
}

相关文章