예제 #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 attachToTargetConfigurations() {
   if (targetModuleRevision.state != ModuleState.Selected) {
     return;
   }
   calculateTargetConfigurations();
   for (ConfigurationNode targetConfiguration : targetConfigurations) {
     targetConfiguration.addIncomingEdge(this);
   }
   if (!targetConfigurations.isEmpty()) {
     selector.getSelectedModule().removeUnattachedDependency(this);
   }
 }
예제 #3
0
 public ModuleVersionSelectionReason getReason() {
   return selector.getSelectionReason();
 }
예제 #4
0
 public ModuleVersionResolveState getSelected() {
   return selector.getSelected();
 }
예제 #5
0
 public ModuleVersionResolveException getFailure() {
   return selector.getFailure();
 }
예제 #6
0
 public void restart(ModuleVersionResolveState selected) {
   selector.restart(selected);
   targetModuleRevision = selected;
   attachToTargetConfigurations();
 }