Tagged articles
ByteBuddy
11 articles · Page 1 of 1
This article demonstrates how to apply ByteBuddy in Java 21 to create dynamic classes, delegate methods, define new methods and fields, and redefine existing classes at runtime, enabling urgent bug fixes and logic changes without restarting the application.
ByteBuddyClass RedefinitionDynamic Class
0 likes · 8 min read

This article explains why static controller definitions limit flexibility, then dives into Spring MVC’s RequestMappingHandlerMapping internals, showing how its public registerMapping method can be used to add or remove controller endpoints at runtime, with two concrete implementations—bean‑method registration and full ByteBuddy‑generated controllers—plus best‑practice notes.
BackendByteBuddyDynamic Controller
0 likes · 13 min read

This article introduces a SpringBoot online debugging injector that lets backend developers add, adjust, and remove fine‑grained debug rules at runtime, eliminating midnight alarm calls, costly redeployments, and performance bottlenecks while keeping production services safe and uninterrupted.
ByteBuddyJava AgentOnline Debugging
0 likes · 18 min read

The new OpenTelemetry Java instrumentation adds client and server request‑size metrics to gRPC by injecting a tracing interceptor via Byte‑Buddy bytecode enhancement, extracting payload sizes from protobuf messages, recording them with custom attributes and histograms, and applying analogous handler‑based logic for Go.
ByteBuddyJavaMetrics
0 likes · 12 min read

This article explains how to create OpenTelemetry instrumentation for the PowerJob distributed scheduler by implementing a Java agent with ByteBuddy, covering background, prerequisite knowledge, entry point discovery, version selection, implementation details, common pitfalls, Muzzle validation, and unit testing.
ByteBuddyOpenTelemetryPowerJob
0 likes · 16 min read

Spring AOP cannot advise non‑bean, static, or internally‑called methods, limiting its use for the Diagnose framework, so the article proposes a Java Agent that transforms bytecode at startup, bypasses proxy constraints, and reliably intercepts private, static, and self‑invoked methods across separate class loaders.
Aspect-Oriented ProgrammingByteBuddyJava
0 likes · 13 min read

This article explains the challenges of full‑chain load testing in microservice environments, compares component modification versus bytecode enhancement, selects ByteBuddy as the preferred bytecode library, describes the design and execution of a Java Agent (Sftc‑Agent), and discusses module architecture, class‑loader isolation, and future improvements.
ByteBuddyJavaJava Agent
0 likes · 9 min read

This article explores Java's proxy patterns, detailing static proxy implementation, various dynamic proxy techniques—including JDK, Cglib, Javassist, and ByteBuddy—providing code examples, performance comparisons, and practical guidance for integrating these proxies into backend development for cleaner, more flexible code.
ByteBuddyCGLIBJDK
0 likes · 18 min read

The article explains how to enhance Java bytecode using a javaagent, covering bytecode fundamentals, agent loading during JVM startup, implementation steps, transformation via ClassFileTransformer, and popular tools such as ASM, Javassist, and ByteBuddy for non‑intrusive runtime instrumentation and monitoring.
AOPASMByteBuddy
0 likes · 13 min read

This tutorial explains how to use Byte Buddy to build a JavaAgent for SkyWalking, debug and continuously integrate the agent, and develop custom SkyWalking plugins such as the kob scheduling framework, providing step‑by‑step code examples and configuration details for observability in Java backend services.
APMByteBuddyJavaAgent
0 likes · 12 min read

This article explains the JavaAgent feature introduced after JDK 1.5, its reliance on JVMTI and JPLISAgent, how to write premain classes and class file transformers, the role of MANIFEST.MF, and analyzes conflicts between Javassist‑based and ByteBuddy‑based agents when they modify the same class.
ByteBuddyJVMJVMTI
0 likes · 17 min read
