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.Module
API 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithInstrumentationSupport(Method getModule, Method getClassLoader, Method isNamed, Method getName, Method getResourceAsStream, Method isExported, Method isOpened, Method canRead, Method isModifiableModule, Method redefineModule)
Creates an enabled dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
modify(Instrumentation instrumentation, Object source, Set<Object> reads, Map<String,Set<Object>> exports, Map<String,Set<Object>> opens, Set<Class<?>> uses, Map<Class<?>,List<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(Method getModule, Method getClassLoader, Method isNamed, Method getName, Method getResourceAsStream, Method isExported, Method isOpened, Method canRead, Method isModifiableModule, 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#isModifiableModule
method.redefineModule
- Thejava.lang.instrument.Instrumentation#redefineModule
method.
-
-
Method Detail
-
modify
public void modify(Instrumentation instrumentation, Object source, Set<Object> reads, Map<String,Set<Object>> exports, Map<String,Set<Object>> opens, Set<Class<?>> uses, Map<Class<?>,List<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.
-
-