Class PluginYmlReader

java.lang.Object
com.ultikits.ultitools.utils.PluginYmlReader

public final class PluginYmlReader extends Object
Reads a module's own plugin.yml straight from its class's code source, given only a bare Class<?> - before any UltiToolsPlugin instance exists (D-12). This is the third place in the codebase that would otherwise open a JAR to read plugin.yml; extracting it once here is the point.

Every failure path - null code source, a directory code source with no plugin.yml (the common case for test/dev classpaths), a missing JAR entry, an unreadable archive, or malformed YAML - returns PluginYmlReader.PluginYmlInfo.EMPTY rather than throwing, logging at most one WARNING. This class runs once per plugin class during dependency-graph construction, and a single bad archive must not take the whole graph down (T-04-20).

Since:
6.3.0
Author:
wisdomme