net.grinder.testutility
Class OverrideInvocationHandlerDecorator

java.lang.Object
  extended by net.grinder.testutility.OverrideInvocationHandlerDecorator
All Implemented Interfaces:
InvocationHandler

public final class OverrideInvocationHandlerDecorator
extends Object
implements InvocationHandler

InvocationHandler decorator that allows a supplied object to handle some of the methods.

Author:
Philip Aston

Constructor Summary
OverrideInvocationHandlerDecorator(InvocationHandler delegate, Object overrider)
           
OverrideInvocationHandlerDecorator(InvocationHandler delegate, Object overrider, String overridePrefix)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideInvocationHandlerDecorator

public OverrideInvocationHandlerDecorator(InvocationHandler delegate,
                                          Object overrider)

OverrideInvocationHandlerDecorator

public OverrideInvocationHandlerDecorator(InvocationHandler delegate,
                                          Object overrider,
                                          String overridePrefix)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] parameters)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2000-2012. All Rights Reserved.