ModuleLayer#defineModulesWithManyLoaders
| Access | Constructor and Description |
|---|---|
| public | LoaderPool(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader)
Creates a pool of class loaders. |
| loaders | back to summary |
|---|---|
| private final Map<String, Loader> loaders | |
| LoaderPool | back to summary |
|---|---|
| public LoaderPool(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader) Creates a pool of class loaders. Each module in the given configuration is mapped to its own class loader in the pool. The class loader is created with the given parent class loader as its parent. | |
| loaderFor | back to summary |
|---|---|
| public Loader loaderFor(String name) Returns the class loader for the named module | |
| loaders | back to summary |
|---|---|
| public Stream Returns a stream of the loaders in this pool. | |