Wednesday, December 1, 2004

Dynamic Proxy

Today I familiarized myself with Java's Proxy class, of the java.lang.reflect package, and the dynamic proxy class disposal. To apply my studies to an example, I came up with the idea of implementing a simple Logger. Since the dnyamically create proxy object redirects all method calls to an InvocationHandler, this handler can be used to log all method calls at the proxy object.

My Example is available through blogtorrent and my download site.

No comments: