All Packages    This Package  Previous  Next  

Interface sqlj.runtime.profile.util.Auditor

public interface Auditor
An auditor is an object on which calls to functions, returned results from functions and exceptions thrown from functions can be registered. It is used to debug calls made to an "audited" class, such as an audited profile.


Variable Index

 o EMPTY_ARGS
Constant defining an empty function argument array.
 o VOID_RETURN
Constant defining a void function return value.

Method Index

 o registerCall(Object, String, Object[])
Called to register a call to an audited method.
 o registerException(Object, String, Exception)
Called to register an exception thrown from an audited method.
 o registerReturn(Object, String, Object)
Called to register a return from an audited method.

Variables

 o EMPTY_ARGS
 public static final Object EMPTY_ARGS[]
Constant defining an empty function argument array.

 o VOID_RETURN
 public static final Object VOID_RETURN
Constant defining a void function return value.

Methods

 o registerCall
 public abstract void registerCall(Object obj,
                                   String methodName,
                                   Object args[])
Called to register a call to an audited method.

Parameters:
obj - the object on which the method call was made.
methodName - the name of the method being called.
args - an array of arguments to the method being called.
 o registerReturn
 public abstract void registerReturn(Object obj,
                                     String methodName,
                                     Object returnVal)
Called to register a return from an audited method.

Parameters:
obj - the object on which the method is returning.
methodName - the name of the method returning.
returnVal - the value of the result.
 o registerException
 public abstract void registerException(Object obj,
                                        String methodName,
                                        Exception e)
Called to register an exception thrown from an audited method.

Parameters:
obj - the object on which the method was orignally called.
methodName - the name of the method throwing the exception.
e - the exception thrown.

All Packages    This Package  Previous  Next