public final class NotesJavaWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_LOGFILE
Name of property of java log file.
|
| Modifier and Type | Method and Description |
|---|---|
static NotesJavaWriter |
getInstance()
Returns the singleton instance of this class.
|
void |
logInvocation(Object result,
Object object,
Method method,
Object[] args,
Throwable throwable)
Logs an invocation to Java-like line.
|
void |
logInvocation(Object result,
Object object,
String method,
Object[] args,
Throwable throwable)
Logs a method invocation as Java code.
|
public static final String JAVA_LOGFILE
public static NotesJavaWriter getInstance()
public void logInvocation(Object result, Object object, Method method, Object[] args, Throwable throwable)
result - the return value of the method callobject - the proxy instance that the method was invoked onmethod - the Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a super-interface of the
proxy interface that the proxy class inherits the method through.args - an array of objects containing the values of thethrowable - an optional throwable that occurred during method call
arguments passed in the method invocation on the proxy instance,
or null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.
public void logInvocation(Object result, Object object, String method, Object[] args, Throwable throwable)
result - the return value of the method callobject - the proxy instance that the method was invoked onmethod - the name of the method.args - an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or nullthrowable - an optional throwable that occurred during method call
if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.
Copyright © 2005–2020. All rights reserved.