private boolean checkResolve(BundleInfo bInfo, BundlesState state) {//throws ManipulatorException { if (bInfo == null) throw new IllegalArgumentException("bInfo is null."); //$NON-NLS-1$ if (!state.isResolved()) state.resolve(false); // if (DEBUG) // System.out.println(state.toString()); if (!state.isResolved(bInfo)) { printoutUnsatisfiedConstraints(bInfo, state); return false; } return true; }
private boolean checkResolve(BundleInfo bInfo, BundlesState state) {//throws ManipulatorException { if (bInfo == null) throw new IllegalArgumentException("bInfo is null."); if (!state.isResolved()) state.resolve(false); // if (DEBUG) // System.out.println(state.toString()); if (!state.isResolved(bInfo)) { printoutUnsatisfiedConstraints(bInfo, state); return false; } return true; }
private boolean checkResolve(BundleInfo bInfo, BundlesState state) {//throws ManipulatorException { if (bInfo == null) throw new IllegalArgumentException("bInfo is null."); //$NON-NLS-1$ if (!state.isResolved()) state.resolve(false); // if (DEBUG) // System.out.println(state.toString()); if (!state.isResolved(bInfo)) { printoutUnsatisfiedConstraints(bInfo, state); return false; } return true; }
public BundleInfo[] getExpectedState() throws IllegalArgumentException, FrameworkAdminRuntimeException { //Log.log(LogService.LOG_DEBUG, this, "getExpectedState()", "BEGIN"); SimpleBundlesState.checkAvailability(fwAdmin); BundlesState bundleState = this.getBundlesState(); if (bundleState instanceof SimpleBundlesState) return new BundleInfo[0]; bundleState.resolve(true); return bundleState.getExpectedState(); }
@Override public BundleInfo[] getExpectedState() throws IllegalArgumentException, FrameworkAdminRuntimeException { //Log.log(LogService.LOG_DEBUG, this, "getExpectedState()", "BEGIN"); SimpleBundlesState.checkAvailability(fwAdmin); BundlesState bundleState = this.getBundlesState(); if (bundleState instanceof SimpleBundlesState) return new BundleInfo[0]; bundleState.resolve(true); return bundleState.getExpectedState(); }
state.resolve(false);