Tagged articles
25 articles
Page 1 of 1
java1234
java1234
Mar 3, 2026 · Backend Development

How MyBatis Plugins Execute: Core Interface and Runtime Flow

This article explains MyBatis’s plugin mechanism, detailing the Interceptor interface methods, how plugins form an interceptor chain to wrap core components like Executor, and provides a step‑by‑step example of a logging plugin with code and configuration, illustrating the runtime flow and extension capabilities.

InterceptorJavaMyBatis
0 likes · 7 min read
How MyBatis Plugins Execute: Core Interface and Runtime Flow
Lin is Dream
Lin is Dream
May 21, 2025 · Backend Development

Mastering Design Patterns for Scalable Middleware Services

This article explores how to apply core design patterns—Observer, Factory, Proxy, and Template Method—in Java middleware development, illustrating each pattern with practical code snippets and explaining the design rationale for building maintainable, extensible, and flexible services.

Backend DevelopmentFactory PatternObserver Pattern
0 likes · 8 min read
Mastering Design Patterns for Scalable Middleware Services
Java Architecture Stack
Java Architecture Stack
Aug 9, 2024 · Fundamentals

Unlocking Guava: How 7 Design Patterns Power Its Core

This article dissects the Guava library to reveal how seven classic design patterns—Builder, Proxy, Immutable, Singleton, Decorator, Adapter, and Observer—are implemented in its core classes, providing clear code examples, step‑by‑step construction processes, and practical insights for Java developers.

Builder PatternDesign PatternsGuava
0 likes · 27 min read
Unlocking Guava: How 7 Design Patterns Power Its Core
Selected Java Interview Questions
Selected Java Interview Questions
Jul 18, 2024 · Backend Development

Exploring Nine Design Patterns in MyBatis: Builder, Factory, Singleton, Proxy, Decorator, Adapter, Composite, Template Method, and Iterator

This article examines nine design patterns employed within MyBatis—Builder, Factory, Singleton, Proxy, Decorator, Adapter, Composite, Template Method, and Iterator—detailing their roles, source code examples, and how they facilitate configuration parsing, SQL execution, and caching in the framework.

Builder PatternDesign PatternsFactory Pattern
0 likes · 18 min read
Exploring Nine Design Patterns in MyBatis: Builder, Factory, Singleton, Proxy, Decorator, Adapter, Composite, Template Method, and Iterator
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 2, 2023 · Fundamentals

Understanding the Proxy Design Pattern with Java Examples

This article explains the Proxy design pattern, illustrates its core participants with clear Chinese idiom analogies, and provides a complete static‑proxy implementation in Java—including interface, real subject, proxy class, and client code—while also noting the distinction between static and dynamic proxies.

Design PatternsJavaProxy Pattern
0 likes · 6 min read
Understanding the Proxy Design Pattern with Java Examples
ByteFE
ByteFE
Nov 23, 2022 · Backend Development

Redesign of the Internationalization Translation Platform Document Parsing SDK to a Three‑Layer Architecture

This article details the motivation, benefits, and technical implementation of refactoring the document parsing SDK from a monolithic design to a three‑layer architecture using Adapter, Decorator, and Proxy patterns, reducing code size by over 70% and improving extensibility for multiple document formats.

Adapter PatternBackend DevelopmentDecorator
0 likes · 14 min read
Redesign of the Internationalization Translation Platform Document Parsing SDK to a Three‑Layer Architecture
Sanyou's Java Diary
Sanyou's Java Diary
Sep 29, 2022 · Backend Development

Java Dynamic Proxies Explained: From Static to ByteBuddy with Performance Tips

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.

ByteBuddyDynamic ProxyJDK
0 likes · 18 min read
Java Dynamic Proxies Explained: From Static to ByteBuddy with Performance Tips
DaTaobao Tech
DaTaobao Tech
Jun 27, 2022 · Mobile Development

Applying Design Patterns to Optimize the Scan Feature Architecture

The Taobao Scan feature was refactored by applying the Responsibility‑Chain, State, and Proxy design patterns, separating view and logic layers, introducing a fluent pipeline API, modular state handling, and a global proxy, which together dramatically improved code maintainability, extensibility, testability, and reduced development risk.

Design PatternsMobile DevelopmentProxy Pattern
0 likes · 13 min read
Applying Design Patterns to Optimize the Scan Feature Architecture
DaTaobao Tech
DaTaobao Tech
May 19, 2022 · Backend Development

Understanding Proxy Pattern and Spring Transaction Management

The article explains static and dynamic proxy patterns, demonstrates their Java implementations, and shows how Spring’s transaction management relies on dynamic AOP proxies—highlighting that internal calls within the same class bypass the proxy, preventing @Transactional methods from starting or rolling back transactions.

Dynamic ProxyJavaProxy Pattern
0 likes · 21 min read
Understanding Proxy Pattern and Spring Transaction Management
NiuNiu MaTe
NiuNiu MaTe
Feb 10, 2022 · Fundamentals

Master the Proxy Pattern with a Fun Story and Go Example

This article explains the proxy design pattern through an engaging cartoon story, analyzes the roles of client, target, and proxy, discusses its benefits and variations, and shows practical usage examples such as ES6 Proxy, virtual image lazy‑loading, and a Golang implementation.

Design PatternsGolangProxy Pattern
0 likes · 4 min read
Master the Proxy Pattern with a Fun Story and Go Example
Selected Java Interview Questions
Selected Java Interview Questions
Nov 21, 2021 · Fundamentals

Understanding Static and Dynamic Proxy Patterns in Java

This article explains the concept of proxy patterns, compares static and dynamic proxies in Java, provides detailed code examples for each, and discusses their advantages, disadvantages, and implementation steps, helping developers choose the appropriate proxy technique for their projects.

Design PatternsDynamic ProxyJava
0 likes · 15 min read
Understanding Static and Dynamic Proxy Patterns in Java
Senior Brother's Insights
Senior Brother's Insights
Jul 27, 2021 · Fundamentals

Mastering the Proxy Pattern: A Hands‑On Guide with Nacos Client

This article explains the proxy design pattern, demonstrates its static implementation with Java code, and shows how Nacos Client leverages a custom proxy delegate to switch between HTTP and gRPC protocols, highlighting structural roles, practical usage, and differences from the decorator pattern.

Backend DevelopmentDesign PatternsJava
0 likes · 12 min read
Mastering the Proxy Pattern: A Hands‑On Guide with Nacos Client
vivo Internet Technology
vivo Internet Technology
Apr 28, 2021 · Backend Development

Tars Java RPC Client Design and Implementation Analysis

The article thoroughly examines Tars’s Java RPC client, explaining its initialization, proxy generation via JDK dynamic proxies, diverse load‑balancing strategies, NIO‑based Reactor networking, and both synchronous (CountDownLatch) and asynchronous callback mechanisms, supplemented with detailed source‑code illustrations of each component.

Client DesignDistributed SystemsNIO Selector
0 likes · 15 min read
Tars Java RPC Client Design and Implementation Analysis
FunTester
FunTester
Dec 29, 2020 · Fundamentals

Understanding Java Proxy Pattern: Static, JDK Dynamic, and CGLIB Proxies

This article explains the proxy design pattern in Java, demonstrates how to create static proxies, uses JDK dynamic proxies with InvocationHandler, and shows how CGLIB can generate class‑based proxies, highlighting their implementations, usage examples, and limitations.

Design PatternsDynamic ProxyJDK Proxy
0 likes · 8 min read
Understanding Java Proxy Pattern: Static, JDK Dynamic, and CGLIB Proxies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 16, 2020 · Backend Development

Understanding Java Proxy Pattern: Static vs Dynamic Proxies, JDK Proxy and CGLIB

This article explains the Java proxy pattern using a real‑world analogy, compares static and dynamic proxies, details implementations with JDK Proxy and CGLIB (including code samples), and discusses how dynamic proxies support the Open‑Closed principle and are applied in Spring AOP for transaction management.

Dynamic ProxyJDK ProxyJava
0 likes · 22 min read
Understanding Java Proxy Pattern: Static vs Dynamic Proxies, JDK Proxy and CGLIB
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 13, 2020 · Fundamentals

Understanding the Proxy Design Pattern in Java: Static, Dynamic, and CGLIB Implementations

This article explains the Proxy design pattern, covering its purpose, static, dynamic (JDK), and CGLIB implementations in Java, provides complete code examples, discusses advantages and disadvantages, and outlines typical use cases such as lazy initialization, access control, remote services, logging, and caching.

Design PatternsDynamic ProxyJava
0 likes · 14 min read
Understanding the Proxy Design Pattern in Java: Static, Dynamic, and CGLIB Implementations
Senior Brother's Insights
Senior Brother's Insights
Mar 21, 2020 · Backend Development

Master Java Proxy: From Static to JDK Dynamic Proxy with Real Code

This article explains the proxy design pattern, shows how to implement static proxies in Java with concrete code examples, discusses their limitations, and then demonstrates JDK dynamic proxies using InvocationHandler and Proxy classes, including generated proxy class details.

Design PatternsDynamic ProxyJDK
0 likes · 13 min read
Master Java Proxy: From Static to JDK Dynamic Proxy with Real Code
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.

Design PatternsDynamic ProxyJava
0 likes · 12 min read
Understanding the Proxy Pattern: Static vs Dynamic Proxy and AOP in Java
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.

Design PatternsDynamic ProxyProxy Pattern
0 likes · 10 min read
Proxy Pattern in Java: Static, Dynamic, and Cglib Implementations