コード例 #1
0
 /** @return The resolved module version */
 public ModuleVersionResolveState resolveModuleRevisionId() {
   if (targetModuleRevision == null) {
     targetModuleRevision = selector.resolveModuleRevisionId();
     selector.getSelectedModule().addUnattachedDependency(this);
   }
   return targetModuleRevision;
 }
コード例 #2
0
 public void restart(ModuleVersionResolveState selected) {
   select(selected);
   for (ModuleVersionResolveState version : versions.values()) {
     version.restart(selected);
   }
   for (ModuleVersionSelectorResolveState selector : selectors) {
     selector.restart(selected);
   }
   for (DependencyEdge dependency : new ArrayList<DependencyEdge>(unattachedDependencies)) {
     dependency.restart(selected);
   }
   unattachedDependencies.clear();
 }
コード例 #3
0
 public void removeFromTargetConfigurations() {
   for (ConfigurationNode targetConfiguration : targetConfigurations) {
     targetConfiguration.removeIncomingEdge(this);
   }
   targetConfigurations.clear();
   if (targetModuleRevision != null) {
     selector.getSelectedModule().removeUnattachedDependency(this);
   }
 }
コード例 #4
0
 public void attachToTargetConfigurations() {
   if (targetModuleRevision.state != ModuleState.Selected) {
     return;
   }
   calculateTargetConfigurations();
   for (ConfigurationNode targetConfiguration : targetConfigurations) {
     targetConfiguration.addIncomingEdge(this);
   }
   if (!targetConfigurations.isEmpty()) {
     selector.getSelectedModule().removeUnattachedDependency(this);
   }
 }
コード例 #5
0
 public ComponentSelectionReason getReason() {
   return selector.getSelectionReason();
 }
コード例 #6
0
 public ModuleVersionIdentifier getSelected() {
   return selector.getSelected().getId();
 }
コード例 #7
0
 public ModuleVersionResolveException getFailure() {
   return selector.getFailure();
 }