FileDocCategorySizeDatePackage
PassThroughInvocationHandler.javaAPI DocExample1387Sun Dec 14 22:47:30 GMT 2003oreilly.hcj.reflection

PassThroughInvocationHandler

public class PassThroughInvocationHandler extends Object implements InvocationHandler
A invocation handler that merely passes through calls. The hello-world of proxies.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
private Object
target
The target object of the proxy.
Constructors Summary
public PassThroughInvocationHandler(Object target)
Creates a new StandardInvocationHandler object.

param
target The target object of the proxy

		this.target = target;
	
Methods Summary
public java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)

see
java.lang.reflect.InvocationHandler

		return method.invoke(target, args);