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

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

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

State.isResolved介绍

[英]Returns true if there have been no modifications to this state since the last time resolve() was called.
[中]如果自上次调用resolve()以来未对此状态进行任何修改,则返回true。

代码示例

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

public boolean isResolved() {
  return target.isResolved();
}

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

public boolean isResolved() {
  return state.isResolved();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.frameworkadmin.equinox

@Override
public boolean isResolved() {
  return state.isResolved();
}

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

public boolean isResolved() {
  return target.isResolved();
}

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

public boolean isResolved() {
  return platformAdmin.getSystemState().isResolved();
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

public boolean isResolved() {
  return platformAdmin.getSystemState().isResolved();
}

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

protected boolean readyToResume() {
  // Return false if the bundle is not at the correct start-level
  if (getInternalStartLevel() > framework.startLevelManager.getStartLevel())
    return false;
  int status = bundledata.getStatus();
  // Return false if the bundle is not persistently marked for start
  if ((status & Constants.BUNDLE_STARTED) == 0)
    return false;
  if ((status & Constants.BUNDLE_ACTIVATION_POLICY) == 0 || (status & Constants.BUNDLE_LAZY_START) == 0 || isLazyTriggerSet())
    return true;
  if (!isResolved()) {
    if (framework.getAdaptor().getState().isResolved() || !framework.packageAdmin.resolveBundles(new Bundle[] {this}))
      // should never transition from UNRESOLVED -> STARTING
      return false;
  }
  // now we can publish the LAZY_ACTIVATION event
  state = STARTING;
  // release the state change lock before sending lazy activation event (bug 258659)
  completeStateChange();
  framework.publishBundleEvent(BundleEvent.LAZY_ACTIVATION, this);
  return false;
}

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

protected boolean readyToResume() {
  // Return false if the bundle is not at the correct start-level
  if (getInternalStartLevel() > framework.startLevelManager.getStartLevel())
    return false;
  int status = bundledata.getStatus();
  // Return false if the bundle is not persistently marked for start
  if ((status & Constants.BUNDLE_STARTED) == 0)
    return false;
  if ((status & Constants.BUNDLE_ACTIVATION_POLICY) == 0 || (status & Constants.BUNDLE_LAZY_START) == 0 || isLazyTriggerSet())
    return true;
  if (!isResolved()) {
    if (framework.getAdaptor().getState().isResolved() || !framework.packageAdmin.resolveBundles(new Bundle[] {this}))
      // should never transition from UNRESOLVED -> STARTING
      return false;
  }
  // now we can publish the LAZY_ACTIVATION event
  state = STARTING;
  // release the state change lock before sending lazy activation event (bug 258659)
  completeStateChange();
  framework.publishBundleEvent(BundleEvent.LAZY_ACTIVATION, this);
  return false;
}

相关文章