Package io.quarkus.deployment.jvm
Class AgentBasedModulesReconfigurer
java.lang.Object
io.quarkus.deployment.jvm.AgentBasedModulesReconfigurer
- All Implemented Interfaces:
JvmModulesReconfigurer
-
Constructor Summary
ConstructorsConstructorDescriptionAgentBasedModulesReconfigurer(Instrumentation instrumentation) Initializes, attempting to find or load an `Instrumentation` instance: first we check if the `ClassChangeAgent` is attached - in which case we can use it. -
Method Summary
Modifier and TypeMethodDescriptionvoidopenJavaModules(List<ModuleOpenBuildItem> addOpens, ModulesClassloaderContext modulesContext)
-
Constructor Details
-
AgentBasedModulesReconfigurer
AgentBasedModulesReconfigurer(Instrumentation instrumentation) Initializes, attempting to find or load an `Instrumentation` instance: first we check if the `ClassChangeAgent` is attached - in which case we can use it. Otherwise we'll proceed to attaching a new agent leveraging the self-attaching strategy from Byte Buddy. If an agent cannot be installed, anIllegalStateExceptionis thrown.
-
-
Method Details
-
openJavaModules
public void openJavaModules(List<ModuleOpenBuildItem> addOpens, ModulesClassloaderContext modulesContext) - Specified by:
openJavaModulesin interfaceJvmModulesReconfigurer
-