@JavaDispatcher.Proxied(value="java.lang.instrument.Instrumentation") protected static interface ClassInjector.UsingInstrumentation.Dispatcher
| Modifier and Type | Method and Description | 
|---|---|
| void | appendToBootstrapClassLoaderSearch(Instrumentation instrumentation,
                                  JarFile jarFile)Appends a jar file to the bootstrap class loader. | 
| void | appendToSystemClassLoaderSearch(Instrumentation instrumentation,
                               JarFile jarFile)Appends a jar file to the system class loader. | 
| boolean | isModifiableModule(Instrumentation instrumentation,
                  Object module)Checks if a module is modifiable. | 
| void | redefineModule(Instrumentation instrumentation,
              Object module,
              Set<?> reads,
              Map<String,Set<?>> exports,
              Map<String,Set<?>> opens,
              Set<Class<?>> uses,
              Map<Class<?>,List<Class<?>>> provides)Redefines an existing module. | 
void appendToBootstrapClassLoaderSearch(Instrumentation instrumentation, JarFile jarFile)
instrumentation - The instrumentation instance to interact with.jarFile - The jar file to append.void appendToSystemClassLoaderSearch(Instrumentation instrumentation, JarFile jarFile)
instrumentation - The instrumentation instance to interact with.jarFile - The jar file to append.boolean isModifiableModule(Instrumentation instrumentation, @JavaDispatcher.Proxied(value="java.lang.Module") Object module)
instrumentation - The instrumentation instance to use for checking for modifiability.module - The java.lang.Module to examine.true if the supplied module is modifiable.void redefineModule(Instrumentation instrumentation, @JavaDispatcher.Proxied(value="java.lang.Module") Object module, Set<?> reads, Map<String,Set<?>> exports, Map<String,Set<?>> opens, Set<Class<?>> uses, Map<Class<?>,List<Class<?>>> provides)
instrumentation - The instrumentation instance to redefine.module - The java.lang.Module to redefine.reads - A set of java.lang.Modules that are to be read additionally.exports - A map of packages to a set of java.lang.Modules to read additionally.opens - A map of packages to a set of java.lang.Modules to open to additionally.uses - A list of types to use additionally.provides - A list of types to their implementations to offer additionally.Copyright © 2014–2024. All rights reserved.