    All Packages    This Package  Previous  Next

# Interface sqlj.runtime.profile.util.Auditor

public interface 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.

##

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

##

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

##

EMPTY_ARGS

     public static final Object EMPTY_ARGS[]

  Constant defining an empty function argument array.

VOID_RETURN

     public static final Object VOID_RETURN

  Constant defining a void function return value.

##

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.

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.

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