/** @return The resolved module version */ public ModuleVersionResolveState resolveModuleRevisionId() { if (targetModuleRevision == null) { targetModuleRevision = selector.resolveModuleRevisionId(); selector.getSelectedModule().addUnattachedDependency(this); } return targetModuleRevision; }
public void attachToTargetConfigurations() { if (targetModuleRevision.state != ModuleState.Selected) { return; } calculateTargetConfigurations(); for (ConfigurationNode targetConfiguration : targetConfigurations) { targetConfiguration.addIncomingEdge(this); } if (!targetConfigurations.isEmpty()) { selector.getSelectedModule().removeUnattachedDependency(this); } }
public ModuleVersionSelectionReason getReason() { return selector.getSelectionReason(); }
public ModuleVersionResolveState getSelected() { return selector.getSelected(); }
public ModuleVersionResolveException getFailure() { return selector.getFailure(); }
public void restart(ModuleVersionResolveState selected) { selector.restart(selected); targetModuleRevision = selected; attachToTargetConfigurations(); }