Package net.bytebuddy.utility
Class JavaModule.Dispatcher.Enabled.WithInstrumentationSupport
- java.lang.Object
-
- net.bytebuddy.utility.JavaModule.Dispatcher.Enabled
-
- net.bytebuddy.utility.JavaModule.Dispatcher.Enabled.WithInstrumentationSupport
-
- All Implemented Interfaces:
JavaModule.Dispatcher
- Enclosing class:
- JavaModule.Dispatcher.Enabled
protected static class JavaModule.Dispatcher.Enabled.WithInstrumentationSupport extends JavaModule.Dispatcher.Enabled
A dispatcher for a VM that does support thejava.lang.ModuleAPI and that supportsInstrumentation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.utility.JavaModule.Dispatcher.Enabled
JavaModule.Dispatcher.Enabled.WithInstrumentationSupport, JavaModule.Dispatcher.Enabled.WithoutInstrumentationSupport
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.JavaModule.Dispatcher
JavaModule.Dispatcher.CreationAction, JavaModule.Dispatcher.Disabled, JavaModule.Dispatcher.Enabled
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.MethodisModifiableModuleThejava.lang.instrument.Instrumentation#isModifiableModulemethod.private java.lang.reflect.MethodredefineModuleThejava.lang.instrument.Instrumentation#redefineModulemethod.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWithInstrumentationSupport(java.lang.reflect.Method getModule, java.lang.reflect.Method getClassLoader, java.lang.reflect.Method isNamed, java.lang.reflect.Method getName, java.lang.reflect.Method getResourceAsStream, java.lang.reflect.Method isExported, java.lang.reflect.Method isOpened, java.lang.reflect.Method canRead, java.lang.reflect.Method isModifiableModule, java.lang.reflect.Method redefineModule)Creates an enabled dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmodify(java.lang.instrument.Instrumentation instrumentation, java.lang.Object source, java.util.Set<java.lang.Object> reads, java.util.Map<java.lang.String,java.util.Set<java.lang.Object>> exports, java.util.Map<java.lang.String,java.util.Set<java.lang.Object>> opens, java.util.Set<java.lang.Class<?>> uses, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Class<?>>> provides)Modifies this module's properties.-
Methods inherited from class net.bytebuddy.utility.JavaModule.Dispatcher.Enabled
canRead, getClassLoader, getName, getResourceAsStream, isAlive, isExported, isNamed, isOpened, moduleOf
-
-
-
-
Constructor Detail
-
WithInstrumentationSupport
protected WithInstrumentationSupport(java.lang.reflect.Method getModule, java.lang.reflect.Method getClassLoader, java.lang.reflect.Method isNamed, java.lang.reflect.Method getName, java.lang.reflect.Method getResourceAsStream, java.lang.reflect.Method isExported, java.lang.reflect.Method isOpened, java.lang.reflect.Method canRead, java.lang.reflect.Method isModifiableModule, java.lang.reflect.Method redefineModule)Creates an enabled dispatcher.- Parameters:
getModule- Thejava.lang.Class#getModule()method.getClassLoader- Thejava.lang.Module#getClassLoader()method.isNamed- Thejava.lang.Module#isNamed()method.getName- Thejava.lang.Module#getName()method.getResourceAsStream- Thejava.lang.Module#getResourceAsStream(String)method.isExported- Thejava.lang.Module#isExported(String,Module)method.isOpened- Thejava.lang.Module#isOpened(String,Module)method.canRead- Thejava.lang.Module#canRead(Module)method.isModifiableModule- Thejava.lang.instrument.Instrumentation#isModifiableModulemethod.redefineModule- Thejava.lang.instrument.Instrumentation#redefineModulemethod.
-
-
Method Detail
-
modify
public void modify(java.lang.instrument.Instrumentation instrumentation, java.lang.Object source, java.util.Set<java.lang.Object> reads, java.util.Map<java.lang.String,java.util.Set<java.lang.Object>> exports, java.util.Map<java.lang.String,java.util.Set<java.lang.Object>> opens, java.util.Set<java.lang.Class<?>> uses, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Class<?>>> provides)Modifies this module's properties.- Parameters:
instrumentation- The instrumentation instace to use for applying the modification.source- The module to modify.reads- A set of additional modules this module should read.exports- A map of packages to export to a set of modules.opens- A map of packages to open to a set of modules.uses- A set of provider interfaces to use by this module.provides- A map of provider interfaces to provide by this module mapped to the provider implementations.
-
-