Class PluginInstallUtils.ModuleIdentity
java.lang.Object
com.ultikits.ultitools.utils.PluginInstallUtils.ModuleIdentity
- Enclosing class:
PluginInstallUtils
Everything later decisions need about which module this is, resolved once.
Two identity namespaces meet here and are reconciled in this one place: a module's runtime
name (getPluginName(), which UltiToolsPlugin(String pluginName, ...) takes as
an argument) and the name a JAR's plugin.yml declares. Gate 1's two blockers were
both a comparison of a name from one space against a name from the other; after this
resolution no code path compares across them -- entries are matched against keys,
and loaded instances were already found by both.
- Since:
- 6.0.0
- Author:
- wisdomme
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<UltiToolsPlugin> private final PluginInstallUtils.RecordedWhat the module loader and the loaded instances recorded about the targets (#516, round 10).The file names of the entries the folder scan identified as this module's, collected as the directory scan identifies them for the pending removal.private final Stringprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModuleIdentity(String requested, List<UltiToolsPlugin> loaded, Set<String> ownJars, Set<String> keys, PluginInstallUtils.Recorded recorded, Set<String> bystanderJars, Map<String, String> bystanderOf, boolean someCodeSourceUnknown) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidnoteCandidates(List<File> jars) Notes the entries the folder scan identified as this module's, before anything is deleted.The uninstalled module in every form an update transaction can name it by, for the cancellation (round-10 review): the unloaded instances' identify-strings and runtime names, the name keys, the JARs they were loaded from, the JARs the start-up scan recorded as declaring their main class, and the entries the folder scan identified.
-
Field Details
-
requested
-
loaded
-
ownJars
-
keys
-
bystanderJars
-
bystanderOf
-
someCodeSourceUnknown
private final boolean someCodeSourceUnknown -
recorded
What the module loader and the loaded instances recorded about the targets (#516, round 10). -
removedJarNames
-
-
Constructor Details
-
ModuleIdentity
-
-
Method Details
-
noteCandidates
-
removedModule
The uninstalled module in every form an update transaction can name it by, for the cancellation (round-10 review): the unloaded instances' identify-strings and runtime names, the name keys, the JARs they were loaded from, the JARs the start-up scan recorded as declaring their main class, and the entries the folder scan identified. Everything except the last is known before the folder is touched, so it holds whatever the folder then does.- Returns:
- the removed module
-