Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Byte Buddy Java Agent with method delegation to interceptor
private static AgentBuilder createAgent(Class<? extends Annotation> annotationType,
String methodName) {
return new AgentBuilder.Default().type(
new AgentBuilder.Transformer() {
public DynamicType.Builder<?> transform(
DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassLoader classLoader) {
return builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment