com.antelmann.util
Class InterfaceMonitor.Adapter
java.lang.Object
com.antelmann.util.InterfaceMonitor.Adapter
- All Implemented Interfaces:
- InterfaceMonitor
- Enclosing interface:
- InterfaceMonitor
public static class InterfaceMonitor.Adapter
- extends Object
- implements InterfaceMonitor
a helper class to faciliate the implementation of the embedding interface
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterfaceMonitor.Adapter
public InterfaceMonitor.Adapter()
prepareInvokation
public Throwable prepareInvokation(Object obj,
Method m,
Object[] args)
- simply returns null
- Specified by:
prepareInvokation in interface InterfaceMonitor
- Parameters:
obj - the original object that the given method is going to be executed on
(if null is returned on this method)m - the method that is to be executed on the given objectargs - the arguments that are to be used for the given method execution
- Returns:
- null if the method is to be called and an exception to be thrown instead of the method call
methodInvoked
public void methodInvoked(Object obj,
Method m,
Object[] args,
long timeTaken,
Object returnValue,
Throwable t)
- does nothing
- Specified by:
methodInvoked in interface InterfaceMonitor
- Parameters:
obj - the original object that the given method was invoked onm - the method that was executed on the given objectargs - the arguments that were used for the given method calltimeTaken - the time it took to execute the given method in millisecondsreturnValue - the value returned by the given method call (if no exception was thrown; otherwise null)t - contains the exception thrown by the given method call (if any);
if the throwable is null, the returnValue is not and vice versa.
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads