Package net.bytebuddy.dynamic.loading
Interface ModuleLayerFromSingleClassLoaderDecorator.ModuleLayer
-
- Enclosing class:
- ModuleLayerFromSingleClassLoaderDecorator
@Proxied("java.lang.ModuleLayer") protected static interface ModuleLayerFromSingleClassLoaderDecorator.ModuleLayer
A proxy for thejava.lang.ModuleLayertype.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectboot()Returns the boot module layer.java.lang.Objectconfiguration(java.lang.Object value)Returns the configuration of the given module layer.java.lang.ObjectdefineModulesWithOneLoader(java.lang.Object configuration, java.util.List<?> moduleLayers, java.lang.ClassLoader classLoaders)Defines modules with a single class loader.java.lang.ClassLoaderfindLoader(java.lang.Object value, java.lang.String name)Finds the class loader for a named module.
-
-
-
Method Detail
-
boot
@IsStatic java.lang.Object boot()
Returns the boot module layer.- Returns:
- The boot module layer.
-
defineModulesWithOneLoader
@IsStatic java.lang.Object defineModulesWithOneLoader(@Proxied("java.lang.module.Configuration") java.lang.Object configuration, java.util.List<?> moduleLayers, @MaybeNull java.lang.ClassLoader classLoaders)
Defines modules with a single class loader.- Parameters:
configuration- The module configuration.moduleLayers- The parent module layers.classLoaders- The class loader to use.- Returns:
- The created module layer controller.
-
configuration
java.lang.Object configuration(java.lang.Object value)
Returns the configuration of the given module layer.- Parameters:
value- The module layer.- Returns:
- The module layer's configuration.
-
findLoader
@MaybeNull java.lang.ClassLoader findLoader(java.lang.Object value, java.lang.String name)
Finds the class loader for a named module.- Parameters:
value- The module layer.name- The module name.- Returns:
- The class loader for the module or
nullif not found.
-
-