I'd like to update java classes dynamically at runtime (just like hot deployment) . Is there solution for that ? Thanks
Asked
Active
Viewed 726 times
1 Answers
0
The way to update a class that has already been loaded by the JVM is bytecode instrumentation. Java instrumentation agents can use methods redefineClasses
and retransformClasses
of the java.lang.instrument.Instrumentation class. Native agents can use respective functions RedefineClasses
and RetransformClasses
of the JVMTI API.

Stanislav Lukyanov
- 2,147
- 10
- 20