Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.meta.reflect.proxy
Interface ProxyFactory.Proxy

Enclosing class:
ProxyFactory

private static interface ProxyFactory.Proxy

All proxies created by a proxy factory will be tagged with this adapter interface, allowing for later retrieval of the actual proxy factory that created the proxy as well as the unique handler associated with it.

The interface is private, so it will not be accessible outside the proxy factory class.

Author:
Gunni Rode / rode.dk

Method Summary
 ProxyFactory.Handler getHandler()
          Returns the unique handler used by this proxy.
 ProxyFactory getProxyFactory()
          Returns the proxy factory that created this proxy.
 

Method Detail

getHandler

ProxyFactory.Handler getHandler()
Returns the unique handler used by this proxy.

Returns:
The unique handler; never null.

getProxyFactory

ProxyFactory getProxyFactory()
Returns the proxy factory that created this proxy.

Returns:
The proxy factory; never null.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.