java.lang.Object
de.grogra.pm.DependencyResolver
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Set<PluginEntry>
protected final Map<PluginEntry,
Integer> protected final Set<PluginEntry>
protected final Map<PluginEntry,
PluginEntry> protected final boolean
protected final Set<PluginEntry>
protected final Set<PluginEntry>
protected final Set<PluginEntry>
-
Constructor Summary
ConstructorDescriptionDependencyResolver
(Map<PluginEntry, Integer> allPlugins) DependencyResolver
(Map<PluginEntry, Integer> allPlugins, boolean reload) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
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.protected String
getCondition
(String version) protected String
getVersionWithoutCondition
(String version) protected boolean
processReAble
(PluginEntry depend, String version, String condition) Re able the dependency if required - return true if some change have been doneprotected boolean
processUpgrade
(PluginEntry depend, String version, String condition) Add the dependency version if required - return true if some change have been donevoid
resolve()
protected void
verifyConditionFormat
(String condition)
-
Field Details
-
reload
protected final boolean reload -
deletions
-
toDisable
-
toAble
-
additions
-
unchanged
-
allPlugins
-
pluginExclusions
-
-
Constructor Details
-
DependencyResolver
-
DependencyResolver
-
-
Method Details
-
resolve
public void resolve() -
clear
public void clear() -
getDeletions
-
getAdditions
-
getToDisable
-
getToAble
-
getPluginExclusions
-
getUnchanged
-
processReAble
Re able the dependency if required - return true if some change have been done -
processUpgrade
Add the dependency version if required - return true if some change have been done -
getVersionWithoutCondition
-
getCondition
-
verifyConditionFormat
-
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
-