FileDocCategorySizeDatePackage
DemoCountingProxy.javaAPI DocExample1112Sun Dec 14 22:47:30 GMT 2003oreilly.hcj.proxies

DemoCountingProxy

public class DemoCountingProxy extends Object
Demonstrates the usage of a counting proxy.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.2 $

Fields Summary
Constructors Summary
Methods Summary
public static final voidmain(java.lang.String[] args)
Run the demonstration.

param
args Command Line Arguments (ignored).

		SomeClassCountingProxy proxy = SomeClassFactory.getCountingProxy();
		proxy.someMethod();
		proxy.someOtherMethod("Our Proxy works!");
		System.out.println("Method Invocation Count = " + proxy.getInvocationCount());