FileDocCategorySizeDatePackage
DelegateInvocationHandlerImpl.javaAPI DocJava SE 5 API1159Fri Aug 26 14:54:40 BST 2005com.sun.corba.se.spi.orbutil.proxy

DelegateInvocationHandlerImpl

public abstract class DelegateInvocationHandlerImpl extends Object

Fields Summary
Constructors Summary
private DelegateInvocationHandlerImpl()

Methods Summary
public static java.lang.reflect.InvocationHandlercreate(java.lang.Object delegate)

	return new InvocationHandler() {
	    public Object invoke( Object proxy, Method method, Object[] args )
		throws Throwable
	    {
		// This throws an IllegalArgument exception if the delegate
		// is not assignable from method.getDeclaring class.
		try {
		    return method.invoke( delegate, args ) ;
		} catch (InvocationTargetException ite) {
		    // Propagate the underlying exception as the
		    // result of the invocation
		    throw ite.getCause() ;
		}
	    }
	} ;