本文整理了Java中org.eclipse.osgi.service.resolver.State.getResolver()
方法的一些代码示例,展示了State.getResolver()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.getResolver()
方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!