Tag

Javassist

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Oct 14, 2024 · Backend Development

Understanding Java Agent: Premain and Agentmain Modes with Instrumentation

This article explains the concept of Java Agent, compares it with AOP, and provides step‑by‑step implementations of both premain and agentmain modes, including Maven packaging, VM attachment, class transformation, redefinition, retransformation, and a Javassist example for method timing.

AgentmainBackend DevelopmentBytecode Manipulation
0 likes · 17 min read
Understanding Java Agent: Premain and Agentmain Modes with Instrumentation
Cognitive Technology Team
Cognitive Technology Team
May 23, 2024 · Backend Development

Modifying Bytecode Before Class Loading in Spring Cloud Using Javassist

This article demonstrates how to use Spring's ApplicationContextInitializer together with Javassist to intercept class loading in a Spring Cloud environment, modify the bytecode of org.apache.commons.lang3.RandomStringUtils, and record method calls, handling parent‑child container initialization nuances.

AOPBytecode ManipulationJava
0 likes · 5 min read
Modifying Bytecode Before Class Loading in Spring Cloud Using Javassist
Top Architect
Top Architect
May 15, 2024 · Backend Development

Implementing a Simple Java RPC Framework: Architecture, Service Registration, Serialization, and Proxy Generation

This article explains the principles and implementation of a Java RPC framework, covering service registration with Zookeeper, serialization, compression, network communication via Netty, dynamic proxy generation using reflection and Javassist, and performance considerations, providing extensive code examples for each component.

Distributed SystemsJavaJavassist
0 likes · 25 min read
Implementing a Simple Java RPC Framework: Architecture, Service Registration, Serialization, and Proxy Generation
Top Architect
Top Architect
Apr 19, 2024 · Backend Development

Design and Implementation of a Lightweight Maven Encryption and Agent Decryption Solution for Java Backend Applications

This article analyzes the challenges of protecting Java backend code and third‑party dependencies, evaluates existing tools such as ProGuard, jar‑protect, GraalVM and core‑lib/xjar, and proposes a lightweight Maven encryption and Java‑agent decryption scheme that limits performance impact to under 5% while safeguarding intellectual property.

JavaJavassistbackend
0 likes · 9 min read
Design and Implementation of a Lightweight Maven Encryption and Agent Decryption Solution for Java Backend Applications
Top Architect
Top Architect
Aug 29, 2023 · Backend Development

Implementing a Simple Java RPC Framework: Architecture, Service Registration, and Proxy Generation

This article walks through building a simple Java RPC framework, covering core concepts such as service registration with Zookeeper, client-side dynamic proxies, network communication via Netty, serialization, compression, and both reflection and Javassist-based proxy generation, complete with code examples and performance comparisons.

Distributed SystemsJavaJavassist
0 likes · 26 min read
Implementing a Simple Java RPC Framework: Architecture, Service Registration, and Proxy Generation
360 Tech Engineering
360 Tech Engineering
Jun 21, 2023 · Information Security

Implementing an IAST Java Agent with Javassist for Runtime Application Security Testing

This article explains the principles of Interactive Application Security Testing (IAST), details the JavaAgent-based agent instrumentation approach, and provides a step‑by‑step guide to building a Java IAST agent using Javassist, custom class loaders, ThreadLocal tracing, and Maven packaging.

IASTJavaAgentJavassist
0 likes · 13 min read
Implementing an IAST Java Agent with Javassist for Runtime Application Security Testing
Top Architect
Top Architect
May 3, 2023 · Backend Development

Understanding RPC: Principles, Implementation Details, and Code Walkthrough

This article explains the fundamentals of Remote Procedure Call (RPC), covering its definition, core challenges, service registration and discovery with Zookeeper, client proxy generation, network transmission using Netty, serialization and compression, server-side request handling via reflection or Javassist, and performance comparisons between proxy strategies.

Distributed SystemsJavaJavassist
0 likes · 24 min read
Understanding RPC: Principles, Implementation Details, and Code Walkthrough
Code Ape Tech Column
Code Ape Tech Column
Apr 4, 2023 · Backend Development

Understanding and Implementing Java Agent (Premain and Agentmain) for Bytecode Manipulation

This article introduces Java Agent technology, explains the differences between premain and agentmain modes, demonstrates how to build, package, and attach agents using Maven and the Attach API, and shows practical bytecode manipulation techniques with Instrumentation and Javassist, complete with code examples.

InstrumentationJavaJavassist
0 likes · 20 min read
Understanding and Implementing Java Agent (Premain and Agentmain) for Bytecode Manipulation
Architect's Guide
Architect's Guide
Jan 28, 2023 · Backend Development

Implementing a Simple Java RPC Framework with Zookeeper, Netty, and Javassist

This article walks through the design and implementation of a lightweight Java RPC framework, covering core concepts such as service registration and discovery with Zookeeper, network communication via Netty, serialization, compression, dynamic proxy generation using Javassist, and performance comparisons between reflection and bytecode‑generated proxies.

Distributed SystemsJavaJavassist
0 likes · 23 min read
Implementing a Simple Java RPC Framework with Zookeeper, Netty, and Javassist
Top Architect
Top Architect
Jan 19, 2023 · Backend Development

Implementing a Simple Java RPC Framework: Architecture, Service Registration, Proxy Generation, and Network Transport

This article explains the principles and implementation of a lightweight Java RPC framework, covering service registration with Zookeeper, client-side dynamic proxies, serialization, compression, Netty-based network transport, and both reflection and Javassist proxy generation, with extensive code examples and performance comparison.

Distributed SystemsJavaJavassist
0 likes · 25 min read
Implementing a Simple Java RPC Framework: Architecture, Service Registration, Proxy Generation, and Network Transport
Top Architect
Top Architect
Jul 7, 2022 · Backend Development

Building a Simple Java RPC Framework: Service Registration, Discovery, and Proxy Generation

This article explains the core concepts and implementation steps of a lightweight Java RPC framework, covering RPC definition, service registration and discovery with Zookeeper, client-side dynamic proxies, network transmission using Netty, serialization, compression, and two server‑side proxy generation strategies (reflection and Javassist).

Distributed SystemsJavaJavassist
0 likes · 25 min read
Building a Simple Java RPC Framework: Service Registration, Discovery, and Proxy Generation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 28, 2020 · Fundamentals

Understanding Java Dynamic Proxy: Static vs Dynamic Implementations and Tools

This article explains the proxy pattern in Java, compares static and dynamic proxy implementations, provides complete code examples for JDK dynamic proxies, CGLIB, Javassist, and ASM proxies, and discusses their characteristics, performance considerations, and practical usage scenarios.

ASMCGLIBDynamic Proxy
0 likes · 21 min read
Understanding Java Dynamic Proxy: Static vs Dynamic Implementations and Tools
vivo Internet Technology
vivo Internet Technology
Sep 23, 2020 · Backend Development

Bytecode Enhancement with JavaAgent: Principles, Tools, and Implementation

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
Bytecode Enhancement with JavaAgent: Principles, Tools, and Implementation
Amap Tech
Amap Tech
Jul 9, 2019 · Mobile Development

Using Java Bytecode for Android Module Dependency Analysis

The article explains how analyzing Java bytecode with tools such as Javassist during the Android Gradle transform phase yields precise, method‑level module dependency data—overcoming the limitations of Gradle trees, import scans, and IDE analysis—and provides a reliable way to map and enforce clean dependency structures in large Android codebases.

AndroidDependency AnalysisJava
0 likes · 10 min read
Using Java Bytecode for Android Module Dependency Analysis
Beike Product & Technology
Beike Product & Technology
Oct 26, 2018 · Backend Development

Understanding JavaAgent: JVM Tool Interface, Implementation Principles, and Bytecode Manipulation Conflicts

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.

ByteBuddyInstrumentationJVM
0 likes · 17 min read
Understanding JavaAgent: JVM Tool Interface, Implementation Principles, and Bytecode Manipulation Conflicts
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
May 6, 2016 · Backend Development

Using Java Instrumentation and Javassist for Non‑Intrusive Performance Monitoring

This article demonstrates how to employ Java's java.lang.instrument API together with Javassist to create a Java agent that instruments bytecode at runtime, enabling performance monitoring without modifying the original application code.

Backend DevelopmentClassFileTransformerInstrumentation
0 likes · 6 min read
Using Java Instrumentation and Javassist for Non‑Intrusive Performance Monitoring