mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 01:34:04 +00:00
Document what pack modules can see and the class checks
Modules compile against the API compileOnly, never ship it, and can use only the API, the JDK and their own pack's jars. Describe the pack loader's parent, the resource rule, the reserved com.volmit. prefix, the load-time class reference check and its limits, and the new errors.
This commit is contained in:
1 parent
1553959cf4
commit
b7b3993a8d
3 files changed
+96
-22
No files matched your search
+8
-2
@@ -28,6 +28,10 @@ types that carry them and lists what the Iris adapter still owes.
|
||||
Stage bodies hold no invocation state. Everything per placement or chunk travels through the
|
||||
context, outputs and accumulators.
|
||||
|
||||
Modules compile against the API `compileOnly` and never ship it. At runtime they can use only the
|
||||
API (`com.volmit.*`), the JDK and the classes in their own pack's jars; anything else fails the
|
||||
pack load, naming the jar and the classes.
|
||||
|
||||
There is no API version gating. Packs ship their module jars, so their compatibility with the
|
||||
running Iris is the pack publisher's responsibility.
|
||||
|
||||
@@ -47,8 +51,10 @@ running Iris is the pack publisher's responsibility.
|
||||
`LoadedModules.load`, and close `PackModules` 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 is visible.
|
||||
- Make built-in modules visible to the loader that defines the API, or pack jars cannot require
|
||||
their stages.
|
||||
- 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.
|
||||
- Pack jars see only `com.volmit.` classes of that loader. Built-in modules whose stages packs may
|
||||
require must be in such a package on that loader, or pack jars cannot require their stages.
|
||||
|
||||
## Open
|
||||
|
||||
|
||||
Reference in new issue
Block a user