Class PluginOrchestrator
java.lang.Object
me.pauleff.converter.PluginOrchestrator
Runs registered
MOOCPlugins against a PluginContext in phased order.
Discovery plugins always run first. For conversion operations, the user must confirm
before misc and conversion plugins execute. Paths declared by each plugin are resolved
relative to the server root; only existing targets are passed to MOOCPlugin.run(PluginContext, List).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an orchestrator that usesPluginRegistry.standard().PluginOrchestrator(PluginRegistry registry) Creates an orchestrator that uses the given plugin registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(PluginContext ctx) Executes the full plugin pipeline for the given context.
-
Constructor Details
-
PluginOrchestrator
public PluginOrchestrator()Creates an orchestrator that usesPluginRegistry.standard(). -
PluginOrchestrator
Creates an orchestrator that uses the given plugin registry.- Parameters:
registry- the registry supplying discovery, misc, and conversion plugins- Throws:
NullPointerException- ifregistryisnull
-
-
Method Details
-
run
Executes the full plugin pipeline for the given context.Always runs discovery plugins. For conversion operations, aborts when an online conversion has an empty UUID map or when the user declines confirmation. Misc plugins then run; conversion plugins run only when a conversion was requested. If conversion discovers additional UUID mappings,
UpdateDefaultServerFilesis reapplied.- Parameters:
ctx- the shared conversion context- Throws:
NullPointerException- ifctxisnull, or if the server type is unset when conversion plugins runUnknownWorldFolderStructureException- if a plugin reports an unsupported world layout
-