Skip to content
Discussion options

You must be logged in to vote

Use Java Instrumentation API (java.lang.instrument)
Create a Java Agent (premain/agentmain)
Apply ClassFileTransformer to modify classes
Libraries:
ASM → low-level, fast
Javassist → easier API
Byte Buddy → modern & clean
Use cases: logging, AOP, monitoring, proxies

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant