Tag

Proxy Pattern

0 views collected around this technical thread.

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 PatternFactory PatternJava
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.

JavaProxy PatternStatic Proxy
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 PatternNode.jsProxy Pattern
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.

ByteBuddyCGLIBDynamic Proxy
0 likes · 18 min read
Java Dynamic Proxies Explained: From Static to ByteBuddy with Performance Tips
Sanyou's Java Diary
Sanyou's Java Diary
Jul 18, 2022 · Fundamentals

Master Java Proxy Pattern: Static, JDK Dynamic & CGLIB Implementations

This article explains the proxy design pattern in Java, covering static proxy, JDK dynamic proxy, and CGLIB dynamic proxy implementations with code examples, diagrams, and a comparison of their advantages, limitations, and use‑case differences.

CGLIBDynamic ProxyJava
0 likes · 9 min read
Master Java Proxy Pattern: Static, JDK Dynamic & CGLIB Implementations
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.

Proxy PatternState Patternarchitecture
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.

AOPDynamic ProxyJava
0 likes · 21 min read
Understanding Proxy Pattern and Spring Transaction Management
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.

Dynamic ProxyJavaProxy Pattern
0 likes · 15 min read
Understanding Static and Dynamic Proxy Patterns in Java
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 DesignLoad BalancingNIO 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.

CGLIBDynamic 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
Dec 6, 2020 · Fundamentals

Understanding the Proxy Pattern: Static and Dynamic Proxies in Java

This article explains the GoF Proxy pattern, illustrates static proxy implementation, and details both JDK dynamic proxy and cglib dynamic proxy techniques in Java with complete code examples and a comparison of their characteristics and usage scenarios.

CGLIBDynamic ProxyJDK Proxy
0 likes · 8 min read
Understanding the Proxy Pattern: Static and Dynamic Proxies in Java
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.

CGLIBDynamic ProxyJDK Proxy
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.

AOPCGLIBDynamic Proxy
0 likes · 14 min read
Understanding the Proxy Design Pattern in Java: Static, Dynamic, and CGLIB Implementations
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.

AOPDynamic 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.

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