Class ManModuleReader
java.lang.Object
manifold.internal.runtime.ManModuleReader
This class facilitates dynamic class loading via Type Manifolds in a Java 9 *modular* configuration.
Note non-modular projects use Java 8, Java 9 with -source = 8, or Java 9 with no module-info.java;
only a project using Java 9+ with module-info.java requires this class.
Basically ManModuleReader exploits Java 9's one-module-per-package rule...
Since Java 9 maps each package name uniquely to a single module, a class of a given package must
either load from that module or not load at all. ManModuleReader contributes to this loading
by first delegating to the normal ModuleReader and, if the class fails to load, let Manifold
attempt to load it.
Since Manifold is compiled exclusively with Java 8, this class implements ModuleReader structurally
via proxy.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ManModuleReader
-
-
Method Details
-
find
- Throws:
IOException
-
open
-
read
- Throws:
IOException
-
release
-
list
-
close
public void close()
-