Tagged articles

Static Proxy

19 articles · Page 1 of 1
liandk
liandk
Jun 25, 2026 · Fundamentals

Proxy Pattern Explained: Code Samples and Real‑World Scenarios

This article introduces the Proxy design pattern, explains its core purpose of controlling access without modifying original classes, illustrates everyday analogies, provides a complete Java static‑proxy implementation with interface, real subject, proxy and test code, and summarizes common use cases and distinctions from decorators.

AOPDesign PatternsJava
0 likes · 5 min read
Proxy Pattern Explained: Code Samples and Real‑World Scenarios
Architect's Guide
Architect's Guide
Jul 13, 2025 · Backend Development

Static vs Dynamic Proxy in Java: When and How to Use Each

This article explains the differences between static and dynamic proxies in Java, demonstrates how to implement static proxies, JDK dynamic proxies, and CGLib proxies with complete code examples, and compares their advantages, limitations, and typical use cases in backend development.

CGLIBJDKJava
0 likes · 9 min read
Static vs Dynamic Proxy in Java: When and How to Use Each
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 PatternsJavaStatic Proxy
0 likes · 6 min read
Understanding the Proxy Design Pattern with Java Examples
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.

AOPJavaSpring Transaction
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.

Design PatternsJavaStatic Proxy
0 likes · 15 min read
Understanding Static and Dynamic Proxy Patterns in Java
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.

AOPCGLIBDesign Patterns
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.

AOPDesign PatternsJava
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.

AOPCGLIBDesign Patterns
0 likes · 10 min read
Proxy Pattern in Java: Static, Dynamic, and Cglib Implementations
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 PatternProxyStatic Proxy
0 likes · 15 min read
Understanding Java Static and Dynamic Proxy Patterns