Package de.grogra.pm

Class DependencyResolver

java.lang.Object
de.grogra.pm.DependencyResolver

public class DependencyResolver extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • resolve

      public void resolve()
    • clear

      public void clear()
    • getDeletions

      public Set<PluginEntry> getDeletions()
    • getAdditions

      public Set<PluginEntry> getAdditions()
    • getToDisable

      public Set<PluginEntry> getToDisable()
    • getToAble

      public Set<PluginEntry> getToAble()
    • getPluginExclusions

      public Map<PluginEntry,PluginEntry> getPluginExclusions()
    • getUnchanged

      public Set<PluginEntry> getUnchanged()
    • processReAble

      protected boolean processReAble(PluginEntry depend, String version, String condition)
      Re able the dependency if required - return true if some change have been done
    • processUpgrade

      protected boolean processUpgrade(PluginEntry depend, String version, String condition)
      Add the dependency version if required - return true if some change have been done
    • getVersionWithoutCondition

      protected String getVersionWithoutCondition(String version)
    • getCondition

      protected String getCondition(String version)
    • verifyConditionFormat

      protected void verifyConditionFormat(String condition)
    • detectConflicts

      public void detectConflicts()
      If a plugin is both in delete and addition && the installed version == candidate version - then remove plugin from both of theses sets If a plugin is to be disabled but is also to be deleted. It is not disabled