mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 01:34:04 +00:00
Let the host choose the jar copy directory and the logger of pack loads
ModuleHost.copyingJarsTo(directory) and loggingTo(logger) replace the fixed java.io.tmpdir and System.getLogger. A System.LoggerFinder would not work for a plugin, whose classes are not on the system class loader.
This commit is contained in:
1 parent
a325640d5d
commit
c5a54558fa
8 files changed
+97
-22
No files matched your search
+3
-2
@@ -91,8 +91,9 @@ running Iris is the pack publisher's responsibility.
|
||||
fields and `reservingNamespaces("iris")`. Its methods accumulate, so the configuration can be
|
||||
built in steps. Load each pack with `LoadedPack.load(packRoot, host)`
|
||||
and close it only after nothing built from it is in use.
|
||||
- Route `System.Logger` output (logger `com.volmit.host.PackModules`) to the server log, so the
|
||||
per-pack module summary and missing-classes warning are visible.
|
||||
- Pass a `System.Logger` that writes to the server log to `ModuleHost.loggingTo(...)`, so the
|
||||
per-pack module summary and missing-classes warning are visible, and a cache directory of the host
|
||||
to `ModuleHost.copyingJarsTo(...)` for the jar copies.
|
||||
- Provide the API at runtime from the plugin's class loader, for example by shading it into the
|
||||
Iris plugin jar. Pack jars must not ship it.
|
||||
- Pass the packages of built-in modules whose stages packs may require to
|
||||
|
||||
Reference in new issue
Block a user