FileDocCategorySizeDatePackage
SomeClassCountingProxy.javaAPI DocExample1663Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.proxies

SomeClassCountingProxy

public class SomeClassCountingProxy extends Object implements SomeClass
A simple proxy to SomeClass.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.2 $

Fields Summary
private final SomeClassImpl
impl
The implementation object for this proxy.
private int
invocationCount
Holds the invocation count.
Constructors Summary
public SomeClassCountingProxy(SomeClassImpl impl)
Creates a new SomeClassProxy object.

param
impl The implementation object for this proxy.


	              	 
	    
		this.impl = impl;
	
Methods Summary
public intgetInvocationCount()
Gets the value of the property invocationCount.

return
The current value of invocationCount

		return invocationCount;
	
public voidsomeMethod()

see
oreilly.hcj.proxies.SomeClass#someMethod()

		this.invocationCount++;
		this.impl.someMethod();
	
public voidsomeOtherMethod(java.lang.String text)

see
oreilly.hcj.proxies.SomeClass#someOtherMethod(java.lang.String)

		this.invocationCount++;
		this.impl.someOtherMethod(text);