Tagged articles

Dynamic Proxy

117 articles · Page 2 of 2
Java Backend Technology
Java Backend Technology
Sep 7, 2018 · Backend Development

How MyBatis Instantiates Mapper Interfaces with JDK Dynamic Proxies

This article explains how MyBatis uses JDK dynamic proxies—specifically a custom “投鞭断流” approach—to automatically create mapper interface implementations, walks through code examples, analyzes core source files, and clarifies why method overloading is prohibited in mapper interfaces.

Dynamic ProxyMyBatisjava
0 likes · 5 min read
How MyBatis Instantiates Mapper Interfaces with JDK Dynamic Proxies
Java Captain
Java Captain
Jun 19, 2018 · Fundamentals

Understanding the Proxy Pattern: Static vs Dynamic Proxy and AOP in Java

This article explains the proxy design pattern, compares static and dynamic proxy implementations in Java, demonstrates how to use Java reflection and InvocationHandler for dynamic proxies, and shows how these techniques enable AOP features such as logging and transaction handling.

AOPDesign PatternsDynamic Proxy
0 likes · 12 min read
Understanding the Proxy Pattern: Static vs Dynamic Proxy and AOP in Java
Java Captain
Java Captain
Apr 11, 2018 · Backend Development

Step‑by‑Step Guide to Spring AOP: Proxy Patterns, Static and Dynamic Proxies, and Practical Implementation

This article explains the fundamentals of Spring AOP by introducing proxy patterns, demonstrating static and dynamic proxy implementations with full Java code examples, and showing how Spring integrates JDK and CGLIB proxies through XML configuration for real‑world cross‑cutting concerns such as transactions and logging.

AOPCGLIBDynamic Proxy
0 likes · 12 min read
Step‑by‑Step Guide to Spring AOP: Proxy Patterns, Static and Dynamic Proxies, and Practical Implementation
Java Captain
Java Captain
Feb 26, 2018 · Fundamentals

Java Dynamic Proxy Mechanism and Design Pattern Overview

This article explains the Proxy design pattern, details Java's dynamic proxy classes and interfaces from JDK 1.6 source, walks through the step‑by‑step creation process, presents a complete demo implementation, and analyzes the underlying Proxy class generation and InvocationHandler mechanisms.

Design PatternDynamic ProxyJDK
0 likes · 13 min read
Java Dynamic Proxy Mechanism and Design Pattern Overview
Java Backend Technology
Java Backend Technology
Dec 25, 2017 · Backend Development

Why Spring Needs AOP: Solving Repetitive Code with Dynamic Proxies

This article explores the pain points of traditional Java web development, demonstrates how design patterns and JDK dynamic proxies introduce Aspect‑Oriented Programming concepts, explains Spring AOP's relationship to AOP, and compares JDK and CGLib proxy implementations for clean, reusable code.

AOPDesign PatternsDynamic Proxy
0 likes · 9 min read
Why Spring Needs AOP: Solving Repetitive Code with Dynamic Proxies
Java Captain
Java Captain
Dec 6, 2017 · Backend Development

Understanding Java Reflection Mechanism and Its Practical Applications

This article explains Java's reflection mechanism, outlines its capabilities such as runtime class inspection, object instantiation, method invocation, and dynamic proxy creation, and provides numerous code examples demonstrating how to retrieve class information, manipulate fields, invoke methods, and apply reflection in patterns like factories.

Code ExampleDynamic Proxybackend development
0 likes · 17 min read
Understanding Java Reflection Mechanism and Its Practical Applications
Java Captain
Java Captain
Nov 28, 2017 · Fundamentals

Proxy Pattern in Java: Static, Dynamic, and Cglib Implementations

This article explains the Proxy design pattern in Java, covering static proxy, dynamic JDK proxy, and Cglib subclass proxy with detailed code examples and discussion of their advantages, limitations, and typical usage in AOP frameworks.

AOPCGLIBDesign Patterns
0 likes · 10 min read
Proxy Pattern in Java: Static, Dynamic, and Cglib Implementations
Java Captain
Java Captain
Sep 12, 2017 · Backend Development

Understanding Java Dynamic Proxy Mechanism

This article explains Java's dynamic proxy mechanism, covering the roles of InvocationHandler and Proxy classes, their APIs, the parameters required for creating proxy instances, and a complete example that demonstrates how method calls are intercepted and delegated through a custom handler.

AOPDynamic ProxyInvocationHandler
0 likes · 11 min read
Understanding Java Dynamic Proxy Mechanism
Ctrip Technology
Ctrip Technology
Sep 4, 2017 · Backend Development

Applying Spring BeanPostProcessor for A/B Testing and Dynamic Routing

This article introduces Spring's BeanPostProcessor, explains its two callback methods, and demonstrates through a real‑world A/B testing scenario how custom annotations and a post‑processor can inject dynamic proxies to simplify routing logic and improve code maintainability.

A/B testingBeanPostProcessorDynamic Proxy
0 likes · 5 min read
Applying Spring BeanPostProcessor for A/B Testing and Dynamic Routing
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java Static and Dynamic Proxy Patterns

This article explains the concept of the Proxy design pattern, demonstrates how to implement static and dynamic proxies in Java with complete source code, and analyzes the advantages, limitations, and internal workings of Java's runtime-generated proxy classes.

Design PatternDynamic ProxyStatic Proxy
0 likes · 15 min read
Understanding Java Static and Dynamic Proxy Patterns
Hujiang Technology
Hujiang Technology
Jul 20, 2017 · Mobile Development

Kotlin Class Extensions, Companion Objects, Singleton Design, Dynamic Proxy, and Pseudo‑Multiple Inheritance

This article explains Kotlin's class extension functions, highlights pitfalls of static resolution, demonstrates smart casts, describes companion objects and singleton patterns, and shows how to implement dynamic proxies and pseudo‑multiple inheritance with practical code examples for Android development.

Class ExtensionsCompanion ObjectDynamic Proxy
0 likes · 11 min read
Kotlin Class Extensions, Companion Objects, Singleton Design, Dynamic Proxy, and Pseudo‑Multiple Inheritance
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Oct 15, 2016 · Backend Development

Intrusive vs. Java Dynamic Proxy Techniques for Measuring Method Performance

This article explains how to measure the execution time of Java methods by first using an intrusive approach that embeds timing code directly in each method, then introduces a cleaner solution based on Java's dynamic proxy mechanism to separate performance monitoring from business logic.

Dynamic ProxyInstrumentationPerformance Measurement
0 likes · 5 min read
Intrusive vs. Java Dynamic Proxy Techniques for Measuring Method Performance
21CTO
21CTO
Oct 7, 2015 · Backend Development

How to Build Transparent Remote Service Calls with Java RPC and Zookeeper

This article explains how large‑scale internet companies replace local service calls with remote procedure calls (RPC), covering Java dynamic proxies, message encoding, serialization, asynchronous response handling, and Zookeeper‑based service registration and discovery to achieve transparent, scalable service communication.

Dynamic ProxyNettyRPC
0 likes · 12 min read
How to Build Transparent Remote Service Calls with Java RPC and Zookeeper