Package com.ultikits.ultitools.utils
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.
-
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 asPluginInstallUtils.deleteModuleJars(com.ultikits.ultitools.utils.PluginInstallUtils.ModuleIdentity)finds them -- deleted, recorded for deletion, or not deletable.private final Stringprivate final booleanprivate 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 resolvedFromLoadedModule, boolean someCodeSourceUnknown) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidnoteRemoved(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
-
resolvedFromLoadedModule
private final boolean resolvedFromLoadedModule -
someCodeSourceUnknown
private final boolean someCodeSourceUnknown -
recorded
What the module loader and the loaded instances recorded about the targets (#516, round 10). -
removedJarNames
The file names of the entries the folder scan identified as this module's, collected asPluginInstallUtils.deleteModuleJars(com.ultikits.ultitools.utils.PluginInstallUtils.ModuleIdentity)finds them -- deleted, recorded for deletion, or not deletable.
-
-
Constructor Details
-
ModuleIdentity
-
-
Method Details
-
noteRemoved
Notes the entries the folder scan identified as this module's, before anything is deleted.- Parameters:
jars- the entries
-
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
-