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 java.lang.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 Modifier and Type Field Description private java.lang.reflect.Method
addExports
Thejava.lang.Module#addExports
method.private java.lang.reflect.Method
getModule
Thejava.lang.Class#getModule
method.private java.lang.reflect.Method
getUnnamedModule
Thejava.lang.ClassLoader#getUnnamedModule
method.private java.lang.reflect.Method
isExported
Thejava.lang.Module#isExported
method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForModuleSystem(java.lang.reflect.Method getModule, java.lang.reflect.Method isExported, java.lang.reflect.Method addExports, java.lang.reflect.Method getUnnamedModule)
Creates a new resolver for a VM that supports the module system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.ClassLoader classLoader, java.lang.Class<?> target)
Adjusts a module graph if necessary.
-
-
-
Field Detail
-
getModule
private final java.lang.reflect.Method getModule
Thejava.lang.Class#getModule
method.
-
isExported
private final java.lang.reflect.Method isExported
Thejava.lang.Module#isExported
method.
-
addExports
private final java.lang.reflect.Method addExports
Thejava.lang.Module#addExports
method.
-
getUnnamedModule
private final java.lang.reflect.Method getUnnamedModule
Thejava.lang.ClassLoader#getUnnamedModule
method.
-
-
Constructor Detail
-
ForModuleSystem
protected ForModuleSystem(java.lang.reflect.Method getModule, java.lang.reflect.Method isExported, java.lang.reflect.Method addExports, java.lang.reflect.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 Detail
-
accept
public void accept(@MaybeNull java.lang.ClassLoader classLoader, java.lang.Class<?> target)
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.
-
-