Package net.bytebuddy.utility.dispatcher
Class JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem
java.lang.Object
net.bytebuddy.utility.dispatcher.JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem
- All Implemented Interfaces:
JavaDispatcher.DynamicClassLoader.Resolver
- Enclosing interface:
JavaDispatcher.DynamicClassLoader.Resolver
@Enhance
public static class JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem
extends Object
implements JavaDispatcher.DynamicClassLoader.Resolver
A resolver for VMs that do support the module system.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.utility.dispatcher.JavaDispatcher.DynamicClassLoader.Resolver
JavaDispatcher.DynamicClassLoader.Resolver.CreationAction, JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem, JavaDispatcher.DynamicClassLoader.Resolver.NoOp
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForModuleSystem
(Method getModule, Method isExported, Method addExports, Method getUnnamedModule) Creates a new resolver for a VM that supports the module system. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ClassLoader classLoader, Class<?> target) Adjusts a module graph if necessary.
-
Field Details
-
getModule
Thejava.lang.Class#getModule
method. -
isExported
Thejava.lang.Module#isExported
method. -
addExports
Thejava.lang.Module#addExports
method. -
getUnnamedModule
Thejava.lang.ClassLoader#getUnnamedModule
method.
-
-
Constructor Details
-
ForModuleSystem
protected ForModuleSystem(Method getModule, Method isExported, Method addExports, Method getUnnamedModule) Creates a new resolver for a VM that supports the module system.- Parameters:
getModule
- Thejava.lang.Class#getModule
method.isExported
- Thejava.lang.Module#isExported
method.addExports
- Thejava.lang.Module#addExports
method.getUnnamedModule
- Thejava.lang.ClassLoader#getUnnamedModule
method.
-
-
Method Details
-
accept
Adjusts a module graph if necessary.- Specified by:
accept
in interfaceJavaDispatcher.DynamicClassLoader.Resolver
- Parameters:
classLoader
- The class loader to adjust.target
- The targeted class for which a proxy is created.
-