ABSTRACT: Dynamic Java (Classes Without Code)
In order to produce Java classes you have to write Java code, right? Not always. JDK 1.3 introduced ‘Dynamic Proxies’, classes generated at runtime to implement an arbitrary set of interfaces using a method call handler. Several open-source packages take this a step further, providing direct generation of bytecode for classes. We’ll look at two applications of Dynamic Proxies (a JDBC driver that logs all SQL statements, and instant EJB1.1 bean stubs) and one bytecode generation project (implementing EJB 2.0 CMP). Other potential uses include speeding up reflection, speeding up serialization, regular expression parsing, mapping objects to a relational database, and more.
SPEAKER BIO: Aaron Mulder
Aaron Mulder has been working with Java technology since Java Alpha. He has worked on applets, applications, and Web applications, using Java, CORBA, and J2EE. He has contributed to the JBoss and OpenEJB open-source EJB servers, implemented Dynamic Proxies for JDK 1.2, and co-authored the book Professional EJB (Wrox Press 2001). Mr. Mulder is also a member of the JSR-88 (J2EE Application Deployment API) expert group, and presented at the 2001 and 2002 JavaOne conferences. He is currently the Chief Technical Officer for Chariot Solutions, a Java consulting company focused on wholesale distributors.