mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 01:04:29 +00:00
Batch 5 of the API review: document that the built-ins build against iris-api alone
README and DESIGN say that IrisModule compiles against iris-api, VolmLib and Gson only, checks its jar with ModuleJarCheck, and that the classes needing Iris itself live in Iris.
This commit is contained in:
1 parent
b6c2992752
commit
9473c827fe
2 files changed
+8
-1
No files matched your search
@@ -1181,6 +1181,12 @@ A module never reaches the host's engine, its data loader or its layout classes;
|
||||
values and its settings through `FeatureSettings`. Iris's mapping from its internals to this surface, with the
|
||||
utilities that move into VolmLib, is in its notes (context.md, "How a module reaches the host").
|
||||
|
||||
Iris's own built-ins hold to this at compile time: IrisModule is a build of its own whose compile classpath is
|
||||
`com.volmit:iris-api`, VolmLib, Gson and the JDK, never `iris-host` or Iris, and its jar passes `ModuleJarCheck`
|
||||
before Iris bundles it. Iris depends on IrisModule, not the reverse. What the built-ins cannot do through the API they
|
||||
ask through the facades of item 3, which Iris implements; the classes that need Iris itself (the layout model, the
|
||||
structure placer behind `StructureHost`, the object placers behind `ObjectHost`) are Iris's and live there.
|
||||
|
||||
## Not implemented
|
||||
|
||||
- Host wiring, which lives in Iris: JSON decoding and validation, rendering `PackSchema` into Iris's schema and
|
||||
|
||||
@@ -440,7 +440,8 @@ Iris provides the API at runtime. At runtime a module can use the Iris API (`com
|
||||
packages the host exposes besides it (the built-in modules' stages and types, so packs can require
|
||||
their stages, and the libraries the host shares: Iris exposes VolmLib, `art.arcane.volmlib`, and Gson,
|
||||
`com.google.gson`), the JDK and the classes in its pack's module jars. Iris internals and the other
|
||||
libraries Iris bundles are hidden.
|
||||
libraries Iris bundles are hidden. Iris's own built-in modules (the IrisModule build) compile against exactly that:
|
||||
`iris-api`, VolmLib and Gson, all `compileOnly`, and run `ModuleJarCheck` on their jar.
|
||||
|
||||
A module may use any library. One the host does not expose it ships inside its own jar or as another
|
||||
jar of the pack, and never borrows Iris's copy. A class may appear in only one jar of a pack, so two jars that
|
||||
|
||||
Reference in new issue
Block a user