Class JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem

    • Field Detail

      • getModule

        private final java.lang.reflect.Method getModule
        The java.lang.Class#getModule method.
      • isExported

        private final java.lang.reflect.Method isExported
        The java.lang.Module#isExported method.
      • addExports

        private final java.lang.reflect.Method addExports
        The java.lang.Module#addExports method.
      • getUnnamedModule

        private final java.lang.reflect.Method getUnnamedModule
        The java.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 - The java.lang.Class#getModule method.
        isExported - The java.lang.Module#isExported method.
        addExports - The java.lang.Module#addExports method.
        getUnnamedModule - The java.lang.ClassLoader#getUnnamedModule method.
    • Method Detail

      • accept

        public void accept​(java.lang.ClassLoader classLoader,
                           java.lang.Class<?> target)
        Adjusts a module graph if necessary.
        Specified by:
        accept in interface JavaDispatcher.DynamicClassLoader.Resolver
        Parameters:
        classLoader - The class loader to adjust.
        target - The targeted class for which a proxy is created.