Session
Dynamic Proxy Architecture
Stuart Halloway, Co-founder, Relevance LLC
Track: Java/XML
Date: Thursday, March 29
Time: 3:30pm
- 4:15pm
Location: Ballroom G
Java's full-fidelity type information, combined with its elegant class file structure, makes it easy to build proxy interfaces on the fly. Java 1.3 introduces Dynamic Proxies that automate this process by creating new classes to dynamically delegate method calls. This session demonstrates how to use Dynamic Proxies, how they build bytecode on the fly, and how to evaluate their performance. Participants will receive free source code for the Generic Delegator, an implementation of Dynamic Proxies compatible with Java 1.2 or later.
Outline
- What are Dynamic Proxies used for?
- Java reflection
- Decorators
- Proxies in RMI
- The architecture
- The java .class file format
- ClassLoaders
- Building bytecodes on the fly
- Performance
- Implications: Other bytecode generation projects
- Instrumentation
- Performance optimization
- Assertions
- Context