Package dev.cwhead.GravesX.module.util
Class LibbyImporter
java.lang.Object
dev.cwhead.GravesX.module.util.LibbyImporter
- All Implemented Interfaces:
LibraryImporter
Implements a
LibraryImporter
that parses Maven-style coordinates and
loads libraries for modules using LibraryLoaderUtil
.-
Constructor Summary
ConstructorsConstructorDescriptionLibbyImporter
(Graves plugin) Creates a new importer bound to the Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
importLibrary
(ModuleContext ctx, String... coordinates) Loads libraries described by coordinate strings.
-
Constructor Details
-
LibbyImporter
Creates a new importer bound to the Graves plugin.- Parameters:
plugin
- Owning Graves plugin.
-
-
Method Details
-
importLibrary
Loads libraries described by coordinate strings. Each coordinate is trimmed and ignored if null/empty.- Specified by:
importLibrary
in interfaceLibraryImporter
- Parameters:
ctx
- Module context of the caller.coordinates
- One or more coordinates in the formgroup:artifact:version[?key=value&...]
.
-