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
ConstructorsModifierConstructorDescriptionprotectedForModuleSystem(Method getModule, Method isExported, Method addExports, Method getUnnamedModule) Creates a new resolver for a VM that supports the module system. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ClassLoader classLoader, Class<?> target) Adjusts a module graph if necessary.
-
Field Details
-
getModule
Thejava.lang.Class#getModulemethod. -
isExported
Thejava.lang.Module#isExportedmethod. -
addExports
Thejava.lang.Module#addExportsmethod. -
getUnnamedModule
Thejava.lang.ClassLoader#getUnnamedModulemethod.
-
-
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#getModulemethod.isExported- Thejava.lang.Module#isExportedmethod.addExports- Thejava.lang.Module#addExportsmethod.getUnnamedModule- Thejava.lang.ClassLoader#getUnnamedModulemethod.
-
-
Method Details
-
accept
Adjusts a module graph if necessary.- Specified by:
acceptin interfaceJavaDispatcher.DynamicClassLoader.Resolver- Parameters:
classLoader- The class loader to adjust.target- The targeted class for which a proxy is created.
-